summary refs log tree commit diff stats
path: root/scripts/tracetool/format/c.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tracetool/format/c.py')
-rw-r--r--scripts/tracetool/format/c.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/tracetool/format/c.py b/scripts/tracetool/format/c.py
index 930140b020..699598fb02 100644
--- a/scripts/tracetool/format/c.py
+++ b/scripts/tracetool/format/c.py
@@ -16,5 +16,13 @@ __email__      = "stefanha@linux.vnet.ibm.com"
 from tracetool import out
 
 
-def begin(events):
-    out('/* This file is autogenerated by tracetool, do not edit. */')
+def generate(events, backend):
+    events = [e for e in events
+              if "disable" not in e.properties]
+
+    out('/* This file is autogenerated by tracetool, do not edit. */',
+        '')
+    backend.generate_begin(events)
+    for event in events:
+        backend.generate(event)
+    backend.generate_end(events)