[LLVMdev] [cfe-dev] Do you use UML utility programs?
Sean Silva
silvas at purdue.edu
Sat Jan 12 19:10:41 PST 2013
On Sat, Jan 12, 2013 at 10:00 PM, Journeyer J. Joh
<oosaprogrammer at gmail.com> wrote:
> Oh I see. Thank you. I will study that.
You will want to use the pid provider. The most basic thing you can
probably do is to turn on flowindent and just trace
`pid$target:::entry' and `pid$target:::return`, which will trace all
the function calls and returns. This blog post
<http://cuddletech.com/blog/pivot/entry.php?id=923> gives an example
of the script I'm thinking of (this is one of the most basic DTrace
scripts).
Also, you may want to compile at -O0, because DTrace can't instrument
functions that have been inlined.
-- Sean Silva
More information about the llvm-dev
mailing list