Enabling static marker support in XULRunner

Rajan Arora rarora@redhat.com
Wed Apr 22 18:43:00 GMT 2009


In continuation to the efforts on enabling packages with static dtrace
probe markers for use with Systemtap:
http://fedoraproject.org/wiki/Features/SystemtapStaticProbes , I
recently experimented with XULRunner. The SDK is used for building 
Firefox and enabling the available probe points in xulrunner will allow 
for high level tracing of firefox using systemtap. There is a bug report 
open for enabling this by default in Fedora Rawhide here:
https://bugzilla.redhat.com/show_bug.cgi?id=496113

Currently, XULRunner java-script source has some static markers that may 
be enabled with the reported patch. Attached is an example script that 
prints out the file and function names called when firefox runs a page 
with java script content in it. Here's some sample output: 
http://pastebin.com/f3b016c8c

For the example script to run, xulrunner build on that system should 
have static markers enabled, which enables Systemtap to gather such 
information.

Cheers
-Rajan

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: example-xulrunner.stp
URL: <http://sourceware.org/pipermail/systemtap/attachments/20090422/ae1f709e/attachment.ksh>


More information about the Systemtap mailing list