[Fwd: Re: [Bug translator/3534] New: support wildcarded linenumber probe syntax]

Frank Ch. Eigler fche@redhat.com
Sun Nov 19 11:12:00 GMT 2006


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



More information about the Systemtap mailing list