To get execution trace ...

To get execution trace ...

Post by V. Ra » Thu, 04 Oct 2001 14:18:16



Greetings,
I wanted to find out if there is a way to get an execution trace
of a program. This could be as simple as a log when each function
is entered and some way to contain recursion. Are there any utilities
that do this?
Is it possible to insert some hooks into profiled code (gprof)??

Thanks in advance.
V. Rao

 
 
 

To get execution trace ...

Post by Heiner Steve » Thu, 04 Oct 2001 19:41:00


 > I wanted to find out if there is a way to get an execution trace
 > of a program. This could be as simple as a log when each function
 > is entered and some way to contain recursion. Are there any utilities
 > that do this?

There used to be a tool called "ctrace" that would modify c source
files to contain "fprintf()" statements. The resulting execution
trace would look like the "sh -v" output.

"truss" or "strace" are not detailed enough, are they?
--
 ___ _

\__ \  _/ -_) V / -_) ' \    Shell Script Programmers: visit
|___/\__\___|\_/\___|_||_|   http://www.shelldorado.com/

 
 
 

1. To get execution trace of a program

Greetings,
What is an easy way to get the execution trace for compiled code? This could
be as simple as inserting a "printf" statement at the beginning of each user
function & possibly a way to contain recursion. Is there a way to do this
using profiled code (gprof) or using a debugger?

Thanks in advance,

2. Floating point exception

3. Producing a trace of a program's execution?

4. Mouse Out Of Sync...

5. tracing csh execution to track down a "variable name too long error"

6. Wanted: Sources for 'mailx', and multi user chat

7. generating an execution trace using adb?

8. missing icmp errors for udp packets

9. To get execution trace ...

10. Getting prompt to update with execution commands.

11. Ordered execution Vs. Random execution

12. getting stack trace from inside program?

13. Getting traffic rate traces bound to each active tcp link