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

Wu Zhou woodzltc at gmail.com
Fri Dec 4 19:13:08 UTC 2009


Hello all,

I have one question on strace: can we only trace the system calls made
after some specified point. For example before the execution of the
function "main", there can be a lot of system calls. But in fact, I am
not interested in any of them. How can I remove them?

I see there a function named setbpt in util.c, but I am not sure if it
can fit this purpose.

Anyone could shed some light on this?

Thanks,
Wu




More information about the Strace-devel mailing list