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: Fw: Re: problem when running the following script


Hi -

On Sun, May 10, 2009 at 12:56:44PM +0800, zshan wrote:
> [...]
> if I want to probe this function:  tun_chr_aio_read   , which located in the path :  kernel\driver\net\tun.c
> how can I probe that?
> 
> I did that throught the following script:
> stap -l 'kernel.function("*@/drivers/net/tun.c")'

The problem is the "kernel." part.  tun is often compiled into
a separate module, so one would use something like:

  stap -l 'module("tun").function("*@drivers/net/*")'


- FChE


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