diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-02-23 15:17:41 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:45:31 -0600 |
commit | aa0cb7816ef6f243139ee5bb805f0bf1d165f684 (patch) | |
tree | ea64f7c590b9925c33f20c7c496a795ef7bd6b40 /scripts | |
parent | 75a3a4d937353ed8b3fc2c2c90c9147e2cd7584c (diff) | |
download | hqemu-aa0cb7816ef6f243139ee5bb805f0bf1d165f684.zip hqemu-aa0cb7816ef6f243139ee5bb805f0bf1d165f684.tar.gz |
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
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1456240661-15422-1-git-send-email-peter.maydell@linaro.org
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/tracetool/format/ust_events_c.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/tracetool/format/ust_events_c.py b/scripts/tracetool/format/ust_events_c.py index bc97093..9967c7a 100644 --- a/scripts/tracetool/format/ust_events_c.py +++ b/scripts/tracetool/format/ust_events_c.py @@ -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', '', |