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>
This commit is contained in:
committed by
Stefan Hajnoczi
parent
43b48cfc3e
commit
585ec7273e
@@ -18,7 +18,6 @@
|
||||
* @id: Unique event identifier.
|
||||
* @name: Event name.
|
||||
* @sstate: Static tracing state.
|
||||
* @dstate: Dynamic tracing state.
|
||||
*
|
||||
* Opaque generic description of a tracing event.
|
||||
*/
|
||||
@@ -26,7 +25,6 @@ typedef struct TraceEvent {
|
||||
TraceEventID id;
|
||||
const char * name;
|
||||
const bool sstate;
|
||||
bool dstate;
|
||||
} TraceEvent;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user