summary refs log tree commit diff stats
path: root/scripts/tracetool/format/ust_events_c.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tracetool/format/ust_events_c.py')
-rw-r--r--scripts/tracetool/format/ust_events_c.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/tracetool/format/ust_events_c.py b/scripts/tracetool/format/ust_events_c.py
index d048b0a551..bc970936be 100644
--- a/scripts/tracetool/format/ust_events_c.py
+++ b/scripts/tracetool/format/ust_events_c.py
@@ -16,7 +16,10 @@ __email__      = "stefanha@redhat.com"
 from tracetool import out
 
 
-def begin(events):
+def generate(events, backend):
+    events = [e for e in events
+              if "disabled" not in e.properties]
+
     out('/* This file is autogenerated by tracetool, do not edit. */',
         '',
         '#define TRACEPOINT_DEFINE',