/usr/sfw/bin/firefox is a shell script which calls run-mozilla.sh which calls firebox-bin. Is there a way to call dapptrace on firefox in order to trace firefox-bin? This message posted from opensolaris.org
/execname == firefox-bin/ Padraig O''Briain wrote:> /usr/sfw/bin/firefox is a shell script which calls run-mozilla.sh which calls firebox-bin. > > Is there a way to call dapptrace on firefox in order to trace firefox-bin? > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- ----------------------------------------------------------------------- ______ Joseph Balenzano /_____/\ Market Development Engineering /____ \\ \ Sun Microsystems Inc. /_____\ \\ / 2 Stamford Plaza, 12th Floor /_____/ \/ / / 281 Tresser Blvd /_____/ / \//\ Stamford, CT 06901 \_____\//\ / / \_____/ / /\ / joseph.balenzano at Sun.COM \_____/ \\ \ Phone/Fax: (203) 653-4186 \_____\ \\ \_____\/ ----------------------------------------------------------------------
Sean McGrath - Sun Microsystems Ireland
2005-Oct-06 14:15 UTC
[dtrace-discuss] dapptrace and firefox
Padraig O''Briain stated: < /usr/sfw/bin/firefox is a shell script which calls run-mozilla.sh which calls firebox-bin. < < Is there a way to call dapptrace on firefox in order to trace firefox-bin? Heres a little script below to start dapptrace when firebox-bin starts... #begin script -- cut here -- #!/usr/sbin/dtrace proc:::exec-success /execname == "firebox-bin"/ { system("/path/to/dapptrace <options> -p %d", pid); exit(0); } # end script -- cut here -- < This message posted from opensolaris.org < _______________________________________________ < dtrace-discuss mailing list < dtrace-discuss at opensolaris.org -- Sean. . sean DoT mcgrath At sun.com http://blogs.sun.com/smg http://www.sun.com/software/solaris
Will we not miss some activity in firebox-bin as it will be running while we are launching dapptrace? This message posted from opensolaris.org
On Thu, Oct 06, 2005 at 07:40:38AM -0700, Padraig O''Briain wrote:> Will we not miss some activity in firebox-bin as it will be running > while we are launching dapptrace?You could add a "stop()" call to the probe if you wanted it to wait for dtrace to attach. Cheers, - jonathan -- Jonathan Adams, Solaris Kernel Development