This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Probes in shared libs going missing


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]