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:

> This time i tried with linux-2.6.24 kernel and systemtap (version
> 0.6.2/0.130). Still not working.
> [...]

As Masami said, you may be probing the wrong function if you want to
be notified about the insertion of a usb drive.  The
usb_register_driver part is called when the *driver* (in this case,
the usb-storage module) is first loaded, and not when it is
subsequently reused for individual usb drives.


> When i tried with probe module("usb-storage").function(....)  
> It gave me the following error: semantic error: no match while
> resolving probe point
> module("usb-storage").function("usb_register_driver")

That makes sense since "usb_register_driver" is not *defined* within
that module.

You might try 

   probe module("usb_storage").function("storage_probe")  { }


- FChE


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