This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Fw: Re: problem when running the following script
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: zshan <zshan at cse dot buaa dot edu dot cn>
- Cc: systemtap <systemtap at sourceware dot org>
- Date: Sun, 10 May 2009 11:06:05 -0400
- Subject: Re: Fw: Re: problem when running the following script
- References: <200905091541529849322@cse.buaa.edu.cn> <200905101256432501377@cse.buaa.edu.cn>
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