aboutsummaryrefslogtreecommitdiff
path: root/scripts/tracetool/backend/ust.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tracetool/backend/ust.py')
-rw-r--r--scripts/tracetool/backend/ust.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/tracetool/backend/ust.py b/scripts/tracetool/backend/ust.py
index 2adaf54..280cb7c 100644
--- a/scripts/tracetool/backend/ust.py
+++ b/scripts/tracetool/backend/ust.py
@@ -27,6 +27,11 @@ def generate_h_begin(events, group):
out('#include <lttng/tracepoint.h>',
'#include "%s"' % header,
+ '',
+ '/* tracepoint_enabled() was introduced in LTTng UST 2.7 */',
+ '#ifndef tracepoint_enabled',
+ '#define tracepoint_enabled(a, b) true',
+ '#endif',
'')
@@ -38,3 +43,8 @@ def generate_h(event, group):
out(' tracepoint(qemu, %(name)s%(tp_args)s);',
name=event.name,
tp_args=argnames)
+
+
+def generate_h_backend_dstate(event, group):
+ out(' tracepoint_enabled(qemu, %(name)s) || \\',
+ name=event.name)