Journeyer J. Joh
2013-Jan-13 03:00 UTC
[LLVMdev] [cfe-dev] Do you use UML utility programs?
Oh I see. Thank you. I will study that. Journeyer 2013/1/13 Sean Silva <silvas at purdue.edu>:> You can easily collect this information with DTrace on a Mac (or > Solaris or FreeBSD) without any special LLVM instrumentation. > > -- Sean Silva-- ---------------------------------------- Journeyer J. Joh o o s a p r o g r a m m e r a t g m a i l d o t c o m ----------------------------------------
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
Journeyer J. Joh
2013-Jan-13 04:01 UTC
[LLVMdev] [cfe-dev] Do you use UML utility programs?
Thank you Sean Silva! I guess DTrace should be very useful. Thank you. Journeyer 2013/1/13 Sean Silva <silvas at purdue.edu>:> 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-- ---------------------------------------- Journeyer J. Joh o o s a p r o g r a m m e r a t g m a i l d o t c o m ----------------------------------------