This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Probes in shared libs going missing
- From: Stan Cox <scox at redhat dot com>
- To: systemtap at sourceware dot org
- Date: Wed, 30 Jun 2010 15:09:28 -0400
- Subject: Re: Probes in shared libs going missing
- References: <4C2A8E51.4000103@mozilla.com>
On 06/29/2010 08:22 PM, Steve Fink wrote:
I'm having problems building firefox with static user probes.
Xulrunner 1.9.1.4 is built as part of the testsuite. To support the *_ENABLED
mechanism, there is a static variable corresponding to each probe. These
variables are defined by 'dtrace -G -s foo.d' -> foo.o. When a probe is fired
in stap, then that variable is incremented by stap itself, so that a check for
if (*_ENABLED()) is actually checking that variables value.
So when a shared object is created that has probes that require semaphore
variables used to implement *_ENABLED then the corresponding object where
those variables are defined is needed, but it isn't linked in. So what the
testsuite build does is:
../src/configure ...
sed -i '/include.*rules.mk/a\
PROGOBJS+=mozjs-dtrace.o' js/src/Makefile