summary refs log tree commit diff stats
path: root/scripts/simpletrace.py
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-02-13 14:00:29 +0000
committerStefan Hajnoczi <stefanha@redhat.com>2018-03-12 11:10:20 +0000
commitbe0aa7ac8990c7d62f2d41a66e8c50784e7ee9ac (patch)
tree2243dd261d3ab1c0b3232cec9a7c983c925fd795 /scripts/simpletrace.py
parente4ae62b802cec437f877f2cadc4ef059cc0eca76 (diff)
downloadfocaccia-qemu-be0aa7ac8990c7d62f2d41a66e8c50784e7ee9ac.tar.gz
focaccia-qemu-be0aa7ac8990c7d62f2d41a66e8c50784e7ee9ac.zip
log-for-trace.h: Split out parts of log.h used by trace.h
A persistent build problem we see is where a source file
accidentally omits the #include of log.h. This slips through
local developer testing because if you configure with the
default (log) trace backend trace.h will pull in log.h for you.
Compilation fails only if some other backend is selected.

To make this error cause a compile failure regardless of
the configured trace backend, split out the parts of log.h
that trace.h requires into a new log-for-trace.h header.
Since almost all manual uses of the log.h functions will
use constants or functions which aren't in log-for-trace.h,
this will let us catch missing #include "qemu/log.h" more
consistently.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180213140029.8308-1-peter.maydell@linaro.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/simpletrace.py')
0 files changed, 0 insertions, 0 deletions