public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Wenji Huang <wenji.huang@oracle.com>
To: systemTAP <systemtap@sources.redhat.com>
Subject: Shared buffer affected by CONFIG_MODVERSIONS
Date: Tue, 06 Jan 2009 08:25:00 -0000	[thread overview]
Message-ID: <496314C0.5040209@oracle.com> (raw)

Hi,

In current stap tree, the shared buffer machinery depends on 
CONFIG_MODVERSIONS.

[wjhuang@EL5U2-64bits testsuite]$ cat 
/lib/modules/2.6.28/build/.config|grep MODVERSION
CONFIG_MODVERSIONS=y
[wjhuang@EL5U2-64bits testsuite]$ sudo runtest 
systemtap.printf/sharedbuf.exp  --tool_opts install
...
Running ./systemtap.printf/sharedbuf.exp ...
FAIL: shared buffer guest
Error inserting module 
'/tmp/stap0Tv0kZ/stap_3ebc02e755c27ff472c3a3ed2d196152_345.ko': Unknown 
symbol in module
Retrying, after attempted removal of module 
stap_3ebc02e755c27ff472c3a3ed2d196152_345 (rc -1)
Error inserting module 
'/tmp/stap0Tv0kZ/stap_3ebc02e755c27ff472c3a3ed2d196152_345.ko': Unknown 
symbol in module
Pass 5: run failed.  Try again with another '--vp 00001' option.
FAIL: buffer sharing (0, 0)

                 ===  Summary ===

# of expected passes            1
# of unexpected failures        2

[wjhuang@EL5U2-64bits testsuite]$ dmesg
stap_4cadcc917d7dfed2e32ec12f99abd964_218: systemtap: 0.8/0.131, base: 
ffffffffa00d1000, memory: 15833+17847+416+14000 data+text+ctx+net, probes: 1
stap_3ebc02e755c27ff472c3a3ed2d196152_345: no symbol version for 
stp_print_flush_test1
stap_3ebc02e755c27ff472c3a3ed2d196152_345: Unknown symbol 
stp_print_flush_test1
stap_3ebc02e755c27ff472c3a3ed2d196152_345: no symbol version for 
stp_print_flush_test1
stap_3ebc02e755c27ff472c3a3ed2d196152_345: Unknown symbol 
stp_print_flush_test1

But the test can pass when CONFIG_MODVERSIONS is not set.
[wjhuang@EL5U2-64bits testsuite]$ cat
/lib/modules/2.6.28/build/.config|grep MODVERSION
# CONFIG_MODVERSIONS is not set
[wjhuang@EL5U2-64bits testsuite]$ sudo runtest
systemtap.printf/sharedbuf.exp  --tool_opts install
...
Running ./systemtap.printf/sharedbuf.exp ...

                 ===  Summary ===

# of expected passes            2
# of expected failures          2


Seems the version information of exported test function don't match will
make kernel refuse to load kernel. To keep shared buffer compatible with
different config kernel needs a little update, pass modversion when 
building module or modify runtime/print.c to make exported function 
switched according to CONFIG_MODVERSIONS.


Regards,
Wenji

                 reply	other threads:[~2009-01-06  8:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=496314C0.5040209@oracle.com \
    --to=wenji.huang@oracle.com \
    --cc=systemtap@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).