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]

[Bug translator/11690] New: Semaphores are broken under STAP_SDT_V2


Since commit a794dbe for bug #11095, the semaphores under STAP_SDT_V2 include
the provider name, i.e. PROVIDER_MARK_semaphore.  However, the .o produced by
the dtrace script is not getting a -DSTAP_SDT_V2, so it's defining only
MARK_semaphore.  This causes failure to link, e.g. from sdt_misc.exp:

Executing on host: gcc /home/jistone/systemtap/build/testsuite/sdt_misc.c 
-I/usr/local/include /hom
e/jistone/systemtap/build/testsuite/sdt_misc_.o -DSTAP_SDT_IMPLICIT_ENABLED -I.
-DSTAP_SDT_V2  -lm  
 -o /home/jistone/systemtap/build/testsuite/sdt_misc_V2.x    (timeout = 300)
/tmp/cc66cAj3.o: In function `sem_display':
sdt_misc.c:(.text+0xc): undefined reference to `sdt_misc_test_probe_0_semaphore'
sdt_misc.c:(.text+0x16): undefined reference to `sdt_misc_test_probe_0_semaphore'
sdt_misc.c:(.text+0x4a): undefined reference to `sdt_misc_test_probe_2_semaphore'
sdt_misc.c:(.text+0x54): undefined reference to `sdt_misc_test_probe_2_semaphore'
sdt_misc.c:(.text+0x88): undefined reference to `sdt_misc_test_probe_3_semaphore'
sdt_misc.c:(.text+0x92): undefined reference to `sdt_misc_test_probe_3_semaphore'
sdt_misc.c:(.text+0xc6): undefined reference to `sdt_misc_test_probe_4_semaphore'
sdt_misc.c:(.text+0xd0): undefined reference to `sdt_misc_test_probe_4_semaphore'
/tmp/cc66cAj3.o: In function `bar':
sdt_misc.c:(.text+0x112): undefined reference to `sdt_misc_test_probe_2_semaphore'
sdt_misc.c:(.text+0x138): undefined reference to `sdt_misc_test_probe_2_semaphore'
/tmp/cc66cAj3.o: In function `baz':
sdt_misc.c:(.text+0x15e): undefined reference to `sdt_misc_test_probe_0_semaphore'
sdt_misc.c:(.text+0x184): undefined reference to `sdt_misc_test_probe_3_semaphore'
/tmp/cc66cAj3.o: In function `buz':
sdt_misc.c:(.text+0x1ca): undefined reference to `sdt_misc_test_probe_4_semaphore'
collect2: ld returned 1 exit status
compiler exited with status 1

The probe_perf benchmark also fails UPROBE V2 SEM in this way.

-- 
           Summary: Semaphores are broken under STAP_SDT_V2
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: jistone at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11690

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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