aboutsummaryrefslogtreecommitdiff
path: root/scripts
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 /scripts
parent43b48cfc3e8ff745a10a6b78a55519d5cf7ec5e8 (diff)
downloadqemu-585ec7273e6fdab902b2128bc6c2a8136aafef04.zip
qemu-585ec7273e6fdab902b2128bc6c2a8136aafef04.tar.gz
qemu-585ec7273e6fdab902b2128bc6c2a8136aafef04.tar.bz2
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 'scripts')
-rw-r--r--scripts/tracetool/format/events_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tracetool/format/events_c.py b/scripts/tracetool/format/events_c.py
index 2d97fa3..2717ea3 100644
--- a/scripts/tracetool/format/events_c.py
+++ b/scripts/tracetool/format/events_c.py
@@ -27,7 +27,7 @@ def generate(events, backend):
out('TraceEvent trace_events[TRACE_EVENT_COUNT] = {')
for e in events:
- out(' { .id = %(id)s, .name = \"%(name)s\", .sstate = %(sstate)s, .dstate = 0 },',
+ out(' { .id = %(id)s, .name = \"%(name)s\", .sstate = %(sstate)s },',
id = "TRACE_" + e.name.upper(),
name = e.name,
sstate = "TRACE_%s_ENABLED" % e.name.upper())