From Fedora Project Wiki
= Description =;
This page is a description of how to probe Javascript programs through Mozilla Firefox, using SystemTap. We will be using the DTrace probe points in Firefox to access information. I am using Fedora-12.
= Requirements =;
*[source] *SystemTap
= Setup =;
1. Download Firefox source from the above link. 2. Create a mozconfig file as follows (Gently adapted from [| Uxebu]) . $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff
ac_add_options --enable-debug --disable-optimize
ac_add_options --enable-shared --disable-static --enable-dtrace
mk_add_options MOZ_MAKE_FLAGS="-s -j4"
mk_add_options AUTOCONF=autoconf213
3. Install autoconf 2.13 (yum install autoconf213)
4. Enter the mozilla directory and run make -f client.mk build
= Playing =;
The libmozjs can be found in (source directory)firefox/obj-ff/dist/lib/libmozjs.so, and the binary is located at (source directory)firefox/obj-ff/dist/bin/firefox.