trace only after some point, to say function "main"

Wu Zhou woodzltc at gmail.com
Sat Dec 5 18:01:08 UTC 2009


Roland,

Thanks for the quick reply. So if I want to add such staff to strace,
do you think it is easy? For the first process, it is not hard, but I
am not sure how to handle the forked processes along the way.

To take the other way you suggested, is there any system call, when it
happen, can indicate that function main (or other specified point),
has been reached, or to be reached in a very short term?

Thanks,
Wu

On Fri, Dec 4, 2009 at 2:21 PM, Roland McGrath <roland at redhat.com> wrote:
> We don't really have a way to do that.  strace only keeps track of the
> syscalls made, so the only kind of triggering events that you could use
> to distinguish the "interesting now" state is a particular syscall.
>




More information about the Strace-devel mailing list