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: [Fwd: Re: [Bug translator/3534] New: support wildcarded linenumber probe syntax]


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


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