trace: Add per-vCPU tracing states for events with the 'vcpu' property
[qemu/kevin.git] / trace / event-internal.h
blob5d8fa97ca5bb7c25766bb6923d254cb3cdefda55
1 /*
2 * Interface for configuring and controlling the state of tracing events.
4 * Copyright (C) 2012-2016 LluĂ­s Vilanova <vilanova@ac.upc.edu>
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 */
10 #ifndef TRACE__EVENT_INTERNAL_H
11 #define TRACE__EVENT_INTERNAL_H
13 #include "trace/generated-events.h"
16 /**
17 * TraceEvent:
18 * @id: Unique event identifier.
19 * @vcpu_id: Unique per-vCPU event identifier.
20 * @name: Event name.
21 * @sstate: Static tracing state.
23 * Opaque generic description of a tracing event.
25 typedef struct TraceEvent {
26 TraceEventID id;
27 TraceEventVCPUID vcpu_id;
28 const char * name;
29 const bool sstate;
30 } TraceEvent;
33 #endif /* TRACE__EVENT_INTERNAL_H */