public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/23068] New: need to get section-list for dynamically loaded kernel module
@ 2018-04-16 19:36 me at serhei dot io
  0 siblings, 0 replies; only message in thread
From: me at serhei dot io @ 2018-04-16 19:36 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=23068

            Bug ID: 23068
           Summary: need to get section-list for dynamically loaded kernel
                    module
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: me at serhei dot io
                CC: smakarov at redhat dot com
  Target Milestone: ---

The only available section-list information for kernel modules is what's
collected and passed by staprun at stap module startup. If a new module is
loaded during the lifetime of a stap module, the new module's section-list info
cannot be accessed from the stap module itself. This prevents e.g. build-id
checking for dynamically loaded modules. 

- on more recent kernels, could the section-list be accessed directly?
- failing that, could staprun be asked to re-run its section-list information
gathering and pass updated info to the module?

Steps to repro:
$ modprobe igb
$ stap -DDEBUG_SYMBOLS=3 -ve 'probe module("igb").function("igb_*_module") {
printf("%s: %s.\n", ctime(gettimeofday_s()), ppfunc()); }'
... observe that section-list for igb is loaded ...
^C
$ rmmod igb
$ stap -DDEBUG_SYMBOLS=3 -ve 'probe module("igb").function("igb_*_module") {
printf("%s: %s.\n", ctime(gettimeofday_s()), ppfunc()); }'
...
$ modprobe igb # while the stap module is running
... observe that section-list for igb is not loaded, build-id check is not
performed, and so forth ...

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-16 19:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-16 19:36 [Bug runtime/23068] New: need to get section-list for dynamically loaded kernel module me at serhei dot io

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).