aboutsummaryrefslogtreecommitdiff
path: root/trace/control.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-10-28 07:06:27 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2016-02-03 09:19:09 +0000
commit585ec7273e6fdab902b2128bc6c2a8136aafef04 (patch)
treec51aa9a5cf2fa1600e5b3128470935afe0eb3bd5 /trace/control.h
parent43b48cfc3e8ff745a10a6b78a55519d5cf7ec5e8 (diff)
trace: track enabled events in a separate array
This is more cache friendly on the fast path, where we already have the event id available. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'trace/control.h')
-rw-r--r--trace/control.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace/control.h b/trace/control.h
index da9bb6b774..6af7ddc628 100644
--- a/trace/control.h
+++ b/trace/control.h
@@ -104,7 +104,7 @@ static const char * trace_event_get_name(TraceEvent *ev);
* As a down side, you must always use an immediate #TraceEventID value.
*/
#define trace_event_get_state(id) \
- ((id ##_ENABLED) && trace_event_get_state_dynamic(trace_event_id(id)))
+ ((id ##_ENABLED) && trace_event_get_state_dynamic_by_id(id))
/**
* trace_event_get_state_static: