systemtap with USB

Frank Ch. Eigler fche@redhat.com
Wed Apr 2 12:10:00 GMT 2008


tsjaseen <jaseen.shamsuddin@wipro.com> writes:

> [...]
> I am trying with the systemtap tool to understand the USB subsystem. I've
> written basic script where the probe point is set for usb_register_driver.
> [...]
> After executing this script i am inserting a USB flash due to which the
> usb-storage module gets loaded. Checked by doing lsmod.
> But the hook i've set here in the kernel is not getting the event at all.

Hm, works for me with a slightly more current fc8 kernel.  Try adding
a "-t" to the stap command line.  It will show you for sure whether a
probe had been hit.


> Secondly, if i am setting the probe point for some other symbol exposed by
> usb-storage module it gives the following error:
>
> semantic error: no match for probe point while resolving probe point
> kernel.function("....")

You will need to use 
    probe module("usb-storage").function(....)

- FChE



More information about the Systemtap mailing list