qemu-e2k/trace
Daniel P. Berrange fe4db84d49 trace: provide mechanism for registering trace events
Remove the notion of there being a single global array
of trace events, by introducing a method for registering
groups of events.

The module_call_init() needs to be invoked at the start
of any program that wants to make use of the trace
support. Currently this covers system emulators qemu-nbd,
qemu-img and qemu-io.

[Squashed the following fix from Daniel P. Berrange
<berrange@redhat.com>:

linux-user/bsd-user: initialize trace events subsystem

The bsd-user/linux-user programs make use of the CPU emulation
code and this now requires that the trace events subsystem
is enabled, otherwise it'll crash trying to allocate an empty
trace events bitmap for the CPU object.

--Stefan]

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-14-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2016-10-12 09:52:50 +02:00
..
control-internal.h trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
control-target.c trace: remove the TraceEventID and TraceEventVCPUID enums 2016-10-12 09:35:54 +02:00
control.c trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
control.h trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
event-internal.h trace: remove the TraceEventID and TraceEventVCPUID enums 2016-10-12 09:35:54 +02:00
ftrace.c trace: don't abort qemu if ftrace can't be initialized 2016-10-12 09:35:54 +02:00
ftrace.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
Makefile.objs rules.mak: quiet-command: Split command name and args to print 2016-10-06 12:11:51 +01: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: convert code to use event iterators 2016-10-12 09:35:54 +02:00
simple.c trace: emit name <-> ID mapping in simpletrace header 2016-10-12 09:35:54 +02:00
simple.h trace: remove the TraceEventID and TraceEventVCPUID enums 2016-10-12 09:35:54 +02:00