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.
10 #ifndef TRACE__EVENT_INTERNAL_H
11 #define TRACE__EVENT_INTERNAL_H
13 #include "trace/generated-events.h"
18 * @id: Unique event identifier.
19 * @vcpu_id: Unique per-vCPU event identifier.
21 * @sstate: Static tracing state.
22 * @dstate: Dynamic tracing state
24 * Interpretation of @dstate depends on whether the event has the 'vcpu'
26 * - false: Boolean value indicating whether the event is active.
27 * - true : Integral counting the number of vCPUs that have this event enabled.
29 * Opaque generic description of a tracing event.
31 typedef struct TraceEvent
{
33 TraceEventVCPUID vcpu_id
;
39 void trace_event_set_state_dynamic_init(TraceEvent
*ev
, bool state
);
41 #endif /* TRACE__EVENT_INTERNAL_H */