Re: Finding out when a child process forks or calls exec

2010-05-11 Thread Dan McNulty
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

Re: Finding out when a child process forks or calls exec

2010-05-04 Thread Dan McNulty
Great! This was what I was looking for. Thanks. -Dan On Mon, May 3, 2010 at 4:39 PM, Dan Nelson wrote: > In the last episode (May 03), Dan McNulty said: >> I am trying to port a debugging tool that uses the ptrace interface from >> Linux to FreeBSD.  From what I can tell, the ptrace interface on

Re: Finding out when a child process forks or calls exec

2010-05-03 Thread Dan Nelson
In the last episode (May 03), Dan McNulty said: > I am trying to port a debugging tool that uses the ptrace interface from > Linux to FreeBSD. From what I can tell, the ptrace interface on FreeBSD > is pretty similar to the Linux interface; however, it doesn't appear that > the FreeBSD interface g

Finding out when a child process forks or calls exec

2010-05-03 Thread Dan McNulty
Hi all, I am trying to port a debugging tool that uses the ptrace interface from Linux to FreeBSD. From what I can tell, the ptrace interface on FreeBSD is pretty similar to the Linux interface; however, it doesn't appear that the FreeBSD interface generate events when the child process forks, cal