target/i386: avoid trunc and ext for MULX and RORX
[qemu/ar7.git] / trace / event-internal.h
blob0c24e01b521b1a4017dc4ea5c9292196e6b56b7a
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
14 * Special value for TraceEvent.vcpu_id field to indicate
15 * that the event is not VCPU specific
17 #define TRACE_VCPU_EVENT_NONE ((uint32_t)-1)
19 /**
20 * TraceEvent:
21 * @id: Unique event identifier.
22 * @name: Event name.
23 * @sstate: Static tracing state.
24 * @dstate: Dynamic tracing state
26 * Interpretation of @dstate depends on whether the event has the 'vcpu'
27 * property:
28 * - false: Boolean value indicating whether the event is active.
29 * - true : Integral counting the number of vCPUs that have this event enabled.
31 * Opaque generic description of a tracing event.
33 typedef struct TraceEvent {
34 uint32_t id;
35 const char * name;
36 const bool sstate;
37 uint16_t *dstate;
38 } TraceEvent;
40 void trace_event_set_state_dynamic_init(TraceEvent *ev, bool state);
42 #endif /* TRACE__EVENT_INTERNAL_H */