Efficient way to determine when a child process forks or calls
alfred at freebsd.org
Tue May 18 07:40:54 UTC 2010
* Dan McNulty <dkmcnulty at gmail.com> [100517 08:02] wrote:
> 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!
kevent has some hooks, have you looked at that?
- Alfred Perlstein
.- AMA, VMOA #5191, 03 vmax, 92 gs500, 85 ch250, 07 zx10
.- FreeBSD committer
More information about the freebsd-hackers