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]

systemtap multiple objs linking question


Greetings systemtappers:

Hey had a (hopefully) quick one for you about systemtap for nodejs:

got all the definitions for the probes (a .d make dtrace -> .h and .o), but
it's failing on final link of node due to undefined references.

node/out/Release/obj.target/node/src/node_systemtap.o:(.note.stapsdt+0x378):
undefined reference to `net__socket__write_semaphore'


$ nm out/Release/obj/gen/node_systemtap_sema.o
0000000000000000 t __dtrace
0000000000000010 D node_gc__done_semaphore
...
000000000000000a D node_net__socket__read_semaphore

$ readelf -n out/Release/obj.target/node/src/node_systemtap.o

Notes at offset 0x00001700 with length 0x000003bc:
  Owner                 Data size Description
  stapsdt              0x00000028 NT_STAPSDT (SystemTap probe descriptors)
    Provider: node
    Name: gc__start
    Location: 0x0000000000000000, Base: 0x0000000000000000, Semaphore:
0x0000000000000000
    Arguments:
...
  stapsdt              0x00000051 NT_STAPSDT (SystemTap probe descriptors)
    Provider: node
    Name: net__socket__write
    Location: 0x0000000000000000, Base: 0x0000000000000000, Semaphore:
0x0000000000000000
    Arguments: -4@%r13d 8@%r12 -4@%r14d -4@%ebp


The provider names are in the generated obj, but the linker is failing to
find the symbols that should be pointing to notes sections (right??)

Or is this setup wrong?  I've been digging around and been looking at
systemtap support for cpython, firefox, and postgres.

Sorry I'm still somewhat new to this systemtap stuff.  Any help or insight
would be gladly appreciated:

github.com:/jcwynholds/node.git branch node-sdt

Thanks!

--jan

--
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Sent from my brain.
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=



--
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Sent from my brain.
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


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