This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: systemtap with USB
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: tsjaseen <jaseen dot shamsuddin at wipro dot com>
- Cc: systemtap at sourceware dot org
- Date: Wed, 02 Apr 2008 08:09:07 -0400
- Subject: Re: systemtap with USB
- References: <16442451.post@talk.nabble.com>
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