This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug kprobes/10482] New: First 3 $$parms not correct using module.function probes


When I run any module.function probe, the first 3 $$parms are not correctly
reported. Interestingly, if there are more than 3 parameters, param4 and higher
are properly printed. The issue is most easily illustrated by showing (actual)
sample code, probe defintion, and output.
 
Here's the call in the probed module to the function that to be probed:
    igb_testfunc(1,2,3,4,5,6,7,8);

Here's the probe itself, which I am running in an .stp file:
    probe module("igb").function("igb_testfunc") {
         printf("%s %s\n",probefunc(),$$parms); }

And here is the output when this probe is hit:
    igb_testfunc p1=0xfffffffff884c200 p2=0xffffffffffffffff p3=0x0 p4=0x4
p5=0x5 p6=0x6 p7=0x7 p8=0x8

This is reproducible on the 2 systems I have available. One is 32bit x86, the
other 64bit. I am running kernel 2.6.31-rc2 built with the recommended CONFIG
settings. I think that I have noticed this on earlier kernels, but am not sure.

All probed functions are properly identified. $$return in return probes shows
the proper return codes.

It may be relevant that I am building my module out of the kernel tree, and in
order to get systemtap to work I manually place the built driver binary into
both the runtime and build locations.

/lib/modules/`uname -r`/kernel/drivers/net/igb/igb.ko
/lib/modules/`uname -r`/build/drivers/net/igb/igb.ko

Thanks for any help. Dave

-- 
           Summary: First 3 $$parms not correct using module.function probes
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: kprobes
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: david dot graham at intel dot com


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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]