[dtrace-discuss] Running DTrace Javascript provider on nevada
Brendan Gregg - Sun Microsystems
brendan at sun.com
Mon Jan 8 10:53:50 PST 2007
G'Day John,
On Mon, Jan 08, 2007 at 05:02:21PM +0000, John Rice wrote:
> Brendan - I'd like to try these out:
>
> http://blogs.sun.com/brendan/entry/dtrace_meets_javascript
> http://blogs.sun.com/brendan/resource/helper-monkey-0.10.tar.gz
>
> I'm running nevada b53 at the minute with Firefox 2.0 installed by
> default. So I grabbed an old tarball of Firefox 1.5.0.4, unpacked it and
> was able to bring up firefox-bin 1.5.0.4.
> http://releases.mozilla.org/pub/mozilla.org/firefox/releases/1.5.0.4/contrib/solaris_tar_ball/firefox-1.5.0.4.en-US.solaris2.10-i386.tar.bz2
>
> I then setup the LD_PRELOAD and LD_LIBRARY_PATH to point to this
> unpacked tarball dir and fired up firefox-bin. I could then run dtrace
> -l javascript*:::* and list out the probes, but firefox failed to display.
Hmm, I tried the same and also had firefox-bin hang on startup -- and yet
running the system shipped build of firefox 1.5.0.4 worked fine. I
thought it may have been a path issue, but I haven't yet found the fix.
However, if you are on b53 then you may have firefox 2.0, which I just
ran with that version of HelperMonkey. So far it seems to be working fine.
I used the following while in the directory with libmozjs.so:
$ export LD_PRELOAD=/usr/lib/firefox/libmozz.so:./libmozjs.so
$ export LD_LIBRARY_PATH=/usr/lib/mps:/usr/lib/firefox
$ export MOZ_PLUGIN_PATH=/usr/lib/firefox/plugins
$ /usr/lib/firefox/firefox-bin -UILocale C -contentLocale c
Hopefully that will be happier.
I suspect firefox 1.5.0.4 was hanging while trying to do the auto update,
so another workaround may be to skip that (somehow)...
cheers,
Brendan
--
Brendan
[CA, USA]
More information about the dtrace-discuss
mailing list