This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
about systemtap script
- From: 陈静相 <chenjx8 at gmail dot com>
- To: systemtap at sources dot redhat dot com
- Date: Tue, 20 Jul 2010 09:26:33 +0800
- Subject: about systemtap script
hi --
about systemtap script
when I use this kind probe "module(MPATTERN).statement(PATTERN)"
allway write PATTERN like:*@globalvar/globalvar.c:59
the line number is a problem. I want this kind probe can support
PATTERN like this :
globalvar.c:
15:void globalvar_read()
16:{
17: ? int a;
18 ? ?int b;
? ? ?....;
30 ? ?a += 100;
31 ? return;
32}
if I want attch line 30, I want to use functionname add offset in function
can systemtap support this PATTERN?
or anyway can support like this?