]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
tracetool: Include osdep.h in generated-ust.c
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Feb 2016 15:17:41 +0000 (15:17 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Feb 2016 15:43:30 +0000 (15:43 +0000)
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>
scripts/tracetool/format/ust_events_c.py

index bc970936be0b42197c51bb8ed22869a54d95b033..9967c7a82e09f99c70914d60722198740fd74951 100644 (file)
@@ -21,6 +21,8 @@ def generate(events, backend):
               if "disabled" not in e.properties]
 
     out('/* This file is autogenerated by tracetool, do not edit. */',
+        '',
+        '#include "qemu/osdep.h"',
         '',
         '#define TRACEPOINT_DEFINE',
         '#define TRACEPOINT_CREATE_PROBES',