Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2010 09:33:31 -0500
From:      Dan McNulty <dkmcnulty@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Efficient way to determine when a child process forks or calls exec
Message-ID:  <AANLkTinO0hqywG7sCWJYXTsayOtad2qnP1SPDn6NzCYm@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I have been experimenting with ptrace to determine when a child
process forks or calls exec. Particularly, I have explored tracing
every system call entry and exit similar to what the truss utility
does, and for my case, the performance impact of tracing every system
call is too great.

Is there a more efficient way than tracing every system call entry and
exit to determine when a child process forks, calls exec, or creates a
new LWP?

Thanks a lot for your help!
-Dan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinO0hqywG7sCWJYXTsayOtad2qnP1SPDn6NzCYm>