public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/6416] New: SystemTap should recognize and disble probes on __devinit/__devexit functions
@ 2008-04-16  9:37 ananth at in dot ibm dot com
  0 siblings, 0 replies; only message in thread
From: ananth at in dot ibm dot com @ 2008-04-16  9:37 UTC (permalink / raw)
  To: systemtap

stap on a simple script:

probe kernel.function("*@drivers/net/ibmveth.c")
{
   printf("%s\n", probefunc());
}

fails with the following error:

ERROR: probe kernel.function("ibmveth_probe@drivers/net/ibmveth.c:1103")
registration error (rc -22)
stapio:stp_main_loop:301 probe_start() returned -1
stapio:cleanup_and_exit:216 CLEANUP AND EXIT  closed=1

This is because ibmveth_probe is annotated __devinit and as such will be
discarded after device initialization. Similarly for __devexit functions also.

Like is currently done with __init and __exit section symbols, SystemTap must
recognize and not probe __devinit/__devexit section symbols too.

-- 
           Summary: SystemTap should recognize and disble probes on
                    __devinit/__devexit functions
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: ananth at in dot ibm dot com
                CC: srinivasa at in dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=6416

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

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

only message in thread, other threads:[~2008-04-16  9:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-16  9:37 [Bug runtime/6416] New: SystemTap should recognize and disble probes on __devinit/__devexit functions ananth at in dot ibm dot com

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