qemu-e2k/scripts/tracetool/backend
Peter Maydell be0aa7ac89 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>
2018-03-12 11:10:20 +00:00
..
__init__.py trace: add TRACE_<event>_BACKEND_DSTATE() 2017-08-01 12:07:48 +01:00
dtrace.py trace: add TRACE_<event>_BACKEND_DSTATE() 2017-08-01 12:07:48 +01:00
ftrace.py trace: add TRACE_<event>_BACKEND_DSTATE() 2017-08-01 12:07:48 +01:00
log.py log-for-trace.h: Split out parts of log.h used by trace.h 2018-03-12 11:10:20 +00:00
simple.py trace: add TRACE_<event>_BACKEND_DSTATE() 2017-08-01 12:07:48 +01:00
syslog.py trace: add TRACE_<event>_BACKEND_DSTATE() 2017-08-01 12:07:48 +01:00
ust.py trace: add TRACE_<event>_BACKEND_DSTATE() 2017-08-01 12:07:48 +01:00