Red Hat Bugzilla – Bug 501795
sdt.h on powerpc Error: junk at end of line: `0'
Last modified: 2009-09-02 06:01:17 EDT
The sdt.h (static dynamic trace markers) are broken on powerpc.
This is with systemtap 0.9.7.
The problem manifests itself when compiling any program using sdt.h for STAP_PROBE or DTRACE_PROBE macros as "Error: junk at end of line: `0'"
It was fixed by:
Author: Mark Wielaard <firstname.lastname@example.org>
Date: Wed May 20 12:39:57 2009 +0200
PR10172 sdt.h on powerpc Error: junk at end of line: `0'
* includes/sys/sdt.h (STAP_NOP): __powerpc__ doesn't want an extra 0.
Tested-by: Mahesh Jagannath Salgaonkar <email@example.com>
This can be tested by checking that the sdt.exp tests all succeed:
sudo make installcheck RUNTESTFLAGS=sdt.exp
This might (or might not) be an issue with ia64 and s390. This functionality depends on full uprobes support for the architecture. If that isn't available the static marker support will not be usable for that architecture and then this bug isn't an issue.
See the upstream bug for more details:
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.