qemu/scripts/tracetool/format
Daniel P. Berrange ef4c9fc854 trace: remove the TraceEventID and TraceEventVCPUID enums
The TraceEventID and TraceEventVCPUID enums constants are
no longer actually used for anything critical.

The TRACE_EVENT_COUNT limit is used to determine the size
of the TraceEvents array, and can be removed if we just
NULL terminate the array instead.

The TRACE_VCPU_EVENT_COUNT limit is used as a magic value
for marking non-vCPU events, and also for declaring the
size of the trace dstate mask in the CPUState struct.
The former usage can be replaced by a dedicated constant
TRACE_EVENT_VCPU_NONE, defined as (uint32_t)-1. For the
latter usage, we can simply define a constant for the
number of VCPUs, avoiding the need for the full enum.

The only other usages of the enum values can be replaced
by accesing the id/vcpu_id fields via the named TraceEvent
structs.

Reviewed-by: Lluís Vilanova <vilanova@ac.upc.edu>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1475588159-30598-11-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2016-10-12 09:35:54 +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: remove the TraceEventID and TraceEventVCPUID enums 2016-10-12 09:35:54 +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: add tracetool simpletrace_stap format 2014-08-12 14:26:11 +01: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