NOTE: Applies on top of the tracetool-handling trivial changes. Provides a generic event state description and a more detailed event control and query interface.
Signed-off-by: Lluís Vilanova <vilan...@ac.upc.edu> --- Changes in v3: * Add some assertions. * Remove debugging printf's. * Improve documentation. * Make 'trace_event_get_state_static' use run-time information, and leave TRACE_*_ENABLED for compile-time checks. Changes in v2: * Minor compilation fixes. Lluís Vilanova (6): trace: Provide a generic tracing event descriptor trace: Provide a detailed event control interface trace: [monitor] Use new event control interface trace: [default] Use new event control interface trace: [simple] Port to generic event information and new control interface trace: [stderr] Port to generic event information and new control interface Makefile | 5 ++ Makefile.objs | 15 ++++- docs/tracing.txt | 41 +++++-------- monitor.c | 15 ++++- scripts/tracetool.py | 149 ++++++++++++++++++++++++++++++++-------------- trace/control-internal.h | 60 +++++++++++++++++++ trace/control.c | 92 ++++++++++++++++++++++++++-- trace/control.h | 148 ++++++++++++++++++++++++++++++++++++++++++---- trace/default.c | 3 - trace/event-internal.h | 28 +++++++++ trace/simple.c | 33 ++-------- trace/simple.h | 6 -- trace/stderr.c | 35 ++--------- trace/stderr.h | 11 --- 14 files changed, 475 insertions(+), 166 deletions(-) create mode 100644 trace/control-internal.h create mode 100644 trace/event-internal.h delete mode 100644 trace/stderr.h To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi <stefa...@gmail.com> Cc: Blue Swirl <blauwir...@gmail.com>