Re: Function tracing
William Cohen <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <[email protected]> |
On 05/11/2015 10:19 AM, Farhan Shariff wrote: > Hello, > > I want to know if it is possible to record function names their input and output paramters using oprofile. > > > Thanks in advance > > Best regards Hi, OProfile is sampling tool rather than a tracing tool. It isn't going to record every call of a function. OProfile records the instruction pointer when the sampling is triggered by an event (for example the another million processors cycles elapse). The sample can be taken anywhere in executable code, so the function arguments or return values may not be available at that particular address. OProfile can examine the stack and determine what functions were called to get to that location. If you are wanting to trace the call and return of functions, there is a systemtap example that does what you are looking for general/para-callgraph-verbose.stp that has a description and source at: https://sourceware.org/systemtap/examples/keyword-index.html#CALLGRAPH More information about systemtap is available at :https://sourceware.org/systemtap/ . -Will > > -- > Farhan Shariff > *ESIGELEC Rouen, France* > Mob : _+31 619084549_ > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > > > _______________________________________________ > oprofile-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oprofile-list > ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y