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]

Re: systemtap with USB


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


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