The last time I played with DTrace on OSX, there were a couple of obnoxious problems: * Any app could shut down tracing for the entire system. * There wasn''t any way to get the full path for the CWD. Could someone let me know if these have been resolved and/or point me to relevant web pages, etc? -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development
Rich Morin wrote:> The last time I played with DTrace on OSX, there were a couple > of obnoxious problems: > > * Any app could shut down tracing for the entire system.If you''re referring to the problem where tracing an app that doesn''t want to be traced can affect probes not directed at that app (i.e. from the profile provider), that''s been addressed: http://blogs.sun.com/ahl/entry/apple_updates_dtrace_again I don''t know about the other issues. -- Dave> > * There wasn''t any way to get the full path for the CWD. > > Could someone let me know if these have been resolved and/or > point me to relevant web pages, etc? > > -r-- David Pacheco, Sun Microsystems Fishworks. http://blogs.sun.com/dap/
At 09:48 -0700 6/25/09, David Pacheco wrote:> If you''re referring to the problem where tracing an app > that doesn''t want to be traced can affect probes not > directed at that app (i.e. from the profile provider), > that''s been addressed: > > http://blogs.sun.com/ahl/entry/apple_updates_dtrace_againI suspected it would have been, but thanks for the info.> I don''t know about the other issues. > >> * There wasn''t any way to get the full path for the CWD.Here''s a more complete description: http://osdir.com/ml/sysutils.dtrace.user/2007-12/msg00138.html An Apple engineer told me (IIRC :) that the problem was a difficult one to solve, because OSX doesn''t carry the full path around in the process data structures (IIRC :) -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development