This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [Fwd: Re: [Bug translator/3534] New: support wildcarded linenumber probe syntax]
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Vara Prasad <prasadav at us dot ibm dot com>
- Cc: SystemTAP <systemtap at sources dot redhat dot com>
- Date: 18 Nov 2006 13:05:59 -0500
- Subject: Re: [Fwd: Re: [Bug translator/3534] New: support wildcarded linenumber probe syntax]
- References: <455D55C9.3070709@us.ibm.com>
varap wrote:
> [...] If i got your above idea correct, is this proposal is to
> support tracing of a function without tracing other functions it
> calls. [...]
Yes, that would be one use. Or one could monitor a variable for
change that is suspected to occur someplace within the function: a
manual version of a watchpoint. One might get basic-block coverage or
branch probability profiles:
probe kernel.statements("the_function@*:*") {
hits[lineno()] ++ # lineno() in future, or pc() now
}
global hits
probe end {
foreach (l+ in lineno)
printf ("%d %d\n", l, hits[l]);
}
- FChE