Tuesday, July 14, 2009

Tool for recording execution behaviour in detail for a program (script, compiled code etc.) or its children?

Hi,


I am looking for a tool (command line linux / solaris) which can return a list of api calls at the kernel level (or C/C++ equivalent) for a given program and all its child processes. It should work with scripts (shell, perl, etc...), binaries, code being compiled etc. The basic idea is to profile the program runtime execution in a fine grained manner and figure out the values its reading/writing, files its reading and writing, libraries its accessing etc. to have an exhaustive description of its run.


Thanks,


Jason

Tool for recording execution behaviour in detail for a program (script, compiled code etc.) or its children?
Solaris has a feature called DTrace which does all of this.
Reply:For linux and BSD i'm sure you can use strace.


For solaris you should also have truss in addition to Dtrace





All of these tools have options to trace the child process to varying levels of detail.

flower garden

No comments:

Post a Comment