aboutsummaryrefslogtreecommitdiff
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.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/tracetool/format/c.py b/scripts/tracetool/format/c.py
index 47115ed8af..833c05a022 100644
--- a/scripts/tracetool/format/c.py
+++ b/scripts/tracetool/format/c.py
@@ -20,10 +20,15 @@ def generate(events, backend, group):
active_events = [e for e in events
if "disable" not in e.properties]
+ if group == "root":
+ header = "trace-root.h"
+ else:
+ header = "trace.h"
+
out('/* This file is autogenerated by tracetool, do not edit. */',
'',
'#include "qemu/osdep.h"',
- '#include "trace.h"',
+ '#include "%s"' % header,
'')
for e in events: