qemu-e2k/trace
Daniel P. Berrange 6a1b0f3aea trace: add trace event iterator APIs
Currently methods which want to iterate over trace events,
do so using the trace_event_count() and trace_event_id()
methods. This leaks the concept of a single ID enum to
the callers. There is an alternative trace_event_pattern()
method which can be used in an iteration context, but its
design is stateless, so is not easy to expand it in the
future.

This defines a formal iterator API will provide a future-
proof way of iterating over events.

The iterator is also able to apply a pattern match filter
to events, further removing the need for the pattern

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Lluís Vilanova <vilanova@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1475588159-30598-4-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2016-10-12 09:35:53 +02:00
..
Makefile.objs rules.mak: quiet-command: Split command name and args to print 2016-10-06 12:11:51 +01:00
control-internal.h trace: Add per-vCPU tracing states for events with the 'vcpu' property 2016-07-18 18:23:12 +01:00
control-target.c trace: Add event "guest_cpu_enter" 2016-09-28 19:17:55 +01:00
control.c trace: add trace event iterator APIs 2016-10-12 09:35:53 +02:00
control.h trace: add trace event iterator APIs 2016-10-12 09:35:53 +02:00
event-internal.h trace: Remove 'trace_events_dstate_init' 2016-09-05 13:47:01 -04:00
ftrace.c all: Clean up includes 2016-02-04 17:41:30 +00:00
ftrace.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
mem-internal.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
mem.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
qmp.c trace: Add QAPI/QMP interfaces to query and control per-vCPU tracing state 2016-07-18 18:23:12 +01:00
simple.c Fix some typos found by codespell 2016-05-18 15:04:27 +03:00
simple.h all: Clean up includes 2016-02-23 12:43:05 +00:00