Skip to content

Commit b6d7e9b

Browse files
committed
Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging
Pull request Fix for a LTTng Userspace Tracer header problem. # gpg: Signature made Tue 07 Jul 2020 16:10:04 BST # gpg: using RSA key 8695A8BFD3F97CDAAC35775A9CA4ABB381AB73C8 # gpg: Good signature from "Stefan Hajnoczi <[email protected]>" [full] # gpg: aka "Stefan Hajnoczi <[email protected]>" [full] # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8 * remotes/stefanha/tags/tracing-pull-request: tracetool: work around ust <sys/sdt.h> include conflict Signed-off-by: Peter Maydell <[email protected]>
2 parents aecdfcc + 27e08ba commit b6d7e9b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/tracetool/backend/dtrace.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ def generate_h_begin(events, group):
4040
else:
4141
header = "trace-dtrace.h"
4242

43+
# Workaround for ust backend, which also includes <sys/sdt.h> and may
44+
# require SDT_USE_VARIADIC to be defined. If dtrace includes <sys/sdt.h>
45+
# first without defining SDT_USE_VARIADIC then ust breaks because the
46+
# STAP_PROBEV() macro is not defined.
47+
out('#define SDT_USE_VARIADIC 1')
48+
4349
out('#include "%s"' % header,
4450
'')
4551

0 commit comments

Comments
 (0)