qemu/trace
Daniel P. Berrange 9397740244 trace: remove global 'uint16 dstate[]' array
Instead of having a global dstate array, declare a single
'uint16 TRACE_${EVENT_NAME}_DSTATE' variable for each
trace event. Record a pointer to this variable in the
TraceEvent struct too.

By turning trace_event_get_state_dynamic_by_id into a
macro, this still hits the fast path, and cache affinity
is ensured by declaring all the uint16 vars adjacent to
each other.

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-7-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2016-10-12 09:35:54 +02:00
..
control-internal.h trace: remove global 'uint16 dstate[]' array 2016-10-12 09:35:54 +02:00
control-target.c trace: remove global 'uint16 dstate[]' array 2016-10-12 09:35:54 +02:00
control.c trace: remove global 'uint16 dstate[]' array 2016-10-12 09:35:54 +02:00
control.h trace: remove some now unused functions 2016-10-12 09:35:54 +02:00
event-internal.h trace: remove global 'uint16 dstate[]' array 2016-10-12 09:35:54 +02: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
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 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