On Apr 16, 2008, at 4:00 PM, Bayard Bell wrote: > > On 16 Apr 2008, at 23:32, Roman Shaposhnik wrote: > >> On Mon, 2008-04-14 at 23:03 +0100, Bayard Bell wrote: >>> I've just recently started working with DTrace and one of the first >>> issues I've run across is the difficulty in following child >>> processes >>> when instrumenting user space. >> >> Are trying to survive fork/exec or just a single process forking its >> image? > > I'm looking to re-initialise the same set of probes under the pid > provider against child processes subsequently created by fork/exec.
Well, if you're really talking about re-inserting probes into a completely new image (after the exec) than I consider DTrace to be doing exactly the right thing -- these are brand new probes so they have to be reinserted. > Maybe I'm just picking up an example that's sufficiently disparate > from others I think I understand, such that I'm so confused about > the differences that I'm not able to account for these with code. > My colleague posted sample code for the problem here: > > http://forum.java.sun.com/thread.jspa?threadID=5285918&tstart=0 > > I've tried a couple of variations on this and suspect that I'm > missing something basic. Indeed. You're missing -32 option to /usr/sbin/dtrace. See my reply on the forum. Thanks, Roman. _______________________________________________ dtrace-discuss mailing list [email protected]
