qemu/scripts/tracetool/format
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
..
__init__.py trace: [tracetool] Minimize the amount of per-backend code 2014-05-07 19:07:18 +02:00
c.py trace: [tracetool] Minimize the amount of per-backend code 2014-05-07 19:07:18 +02:00
d.py trace: add DTrace reserved words for .d files 2015-03-02 15:39:43 -06:00
events_c.py trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
events_h.py trace: remove the TraceEventID and TraceEventVCPUID enums 2016-10-12 09:35:54 +02:00
h.py trace: remove the TraceEventID and TraceEventVCPUID enums 2016-10-12 09:35:54 +02:00
simpletrace_stap.py trace: emit name <-> ID mapping in simpletrace header 2016-10-12 09:35:54 +02:00
stap.py trace: extract stap_escape() function for reuse 2014-08-12 14:26:11 +01:00
tcg_h.py Clean up includes some more 2016-03-22 22:20:16 +01:00
tcg_helper_c.py qemu-common: push cpu.h inclusion out of qemu-common.h 2016-05-19 16:42:29 +02:00
tcg_helper_h.py trace: Add 'vcpu' event property to trace guest vCPU 2016-03-01 13:27:10 +00:00
tcg_helper_wrapper_h.py trace: Add 'vcpu' event property to trace guest vCPU 2016-03-01 13:27:10 +00:00
ust_events_c.py Clean up includes some more 2016-03-22 22:20:16 +01:00
ust_events_h.py trace: [ust] Fix format string computation in tcg-enabled events 2014-09-26 09:34:38 +01:00