summaryrefslogtreecommitdiffstats
path: root/trace/event-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'trace/event-internal.h')
-rw-r--r--trace/event-internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/trace/event-internal.h b/trace/event-internal.h
index 074faf6862..4a98d09153 100644
--- a/trace/event-internal.h
+++ b/trace/event-internal.h
@@ -19,6 +19,12 @@
* @vcpu_id: Unique per-vCPU event identifier.
* @name: Event name.
* @sstate: Static tracing state.
+ * @dstate: Dynamic tracing state
+ *
+ * Interpretation of @dstate depends on whether the event has the 'vcpu'
+ * property:
+ * - false: Boolean value indicating whether the event is active.
+ * - true : Integral counting the number of vCPUs that have this event enabled.
*
* Opaque generic description of a tracing event.
*/
@@ -27,6 +33,7 @@ typedef struct TraceEvent {
TraceEventVCPUID vcpu_id;
const char * name;
const bool sstate;
+ uint16_t *dstate;
} TraceEvent;
void trace_event_set_state_dynamic_init(TraceEvent *ev, bool state);