mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-13 06:16:05 -06:00
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>
|
||
|---|---|---|
| .. | ||
| control-internal.h | ||
| control-target.c | ||
| control.c | ||
| control.h | ||
| event-internal.h | ||
| ftrace.c | ||
| ftrace.h | ||
| Makefile.objs | ||
| mem-internal.h | ||
| mem.h | ||
| qmp.c | ||
| simple.c | ||
| simple.h | ||