Skip to contentSkip to conversation

tracetool: Include osdep.h in generated-ust.c

PATCH In review Peter Maydell 2 participants 3 messages Feb 23, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tracetool: Include osdep.h in generated-ust.c

When generating the trace/generated-ust.c source file, make sure it includes osdep.h as its first include.

This fixes compilation with --enable-trace-backends=ust

---
Picked up by the travis build tests.

 scripts/tracetool/format/ust_events_c.py | 2 ++
 1 file changed, 2 insertions(+)
scripts/tracetool/format/ust_events_c.py +2 -0
index bc97093..52100c0 100644
@@ -22,6 +22,8 @@ def generate(events, backend):
 
     out('/* This file is autogenerated by tracetool, do not edit. */',
         '',
+	'#include "qemu/osdep.h"',
+	'',
         '#define TRACEPOINT_DEFINE',
         '#define TRACEPOINT_CREATE_PROBES',
         '',
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Peter Maydell

When generating the trace/generated-ust.c source file, make sure it includes osdep.h as its first include.

This fixes compilation with --enable-trace-backends=ust

---
Picked up by the travis build tests.

 scripts/tracetool/format/ust_events_c.py | 2 ++
 1 file changed, 2 insertions(+)
scripts/tracetool/format/ust_events_c.py +0 -0
index bc97093..52100c0 100644

scripts/tracetool/format/ust_events_c.py def generate(events, backend): · line 26

Quoted 5 lines
scripts/tracetool/format/ust_events_c.py +2 -0
@@ -22,6 +22,8 @@ def generate(events, backend):
 
     out('/* This file is autogenerated by tracetool, do not edit. */',
         '',
+	'#include "qemu/osdep.h"',
+	'',

TAB-damaged. With that fixed,

Quoted 4 lines
scripts/tracetool/format/ust_events_c.py +0 -0
         '#define TRACEPOINT_DEFINE',
         '#define TRACEPOINT_CREATE_PROBES',
         '',
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#2 lore raw
Quoted 19 lines · Eric Blake
Quoted 18 lines · Peter Maydell

When generating the trace/generated-ust.c source file, make sure it includes osdep.h as its first include.

This fixes compilation with --enable-trace-backends=ust

---
Picked up by the travis build tests.

 scripts/tracetool/format/ust_events_c.py | 2 ++
 1 file changed, 2 insertions(+)
scripts/tracetool/format/ust_events_c.py +0 -0
index bc97093..52100c0 100644
@@ -22,6 +22,8 @@ def generate(events, backend):
 
Quoted 7 lines

scripts/tracetool/format/ust_events_c.py def generate(events, backend): · line 26

Quoted 4 lines
scripts/tracetool/format/ust_events_c.py +2 -0
     out('/* This file is autogenerated by tracetool, do not edit. */',
         '',
+     '#include "qemu/osdep.h"',
+     '',

TAB-damaged. With that fixed,

Thanks; applied to master as a buildfix (with the tab damage fixed).

-- PMM