block/parallels: add backing support to readv/writev
[qemu/ar7.git] / stubs / trace-control.c
blob7f856e5c24e34d41e87872308050b4584c955cab
1 /*
2 * Interface for configuring and controlling the state of tracing events.
4 * Copyright (C) 2014-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 #include "qemu/osdep.h"
11 #include "trace/control.h"
14 void trace_event_set_state_dynamic_init(TraceEvent *ev, bool state)
16 trace_event_set_state_dynamic(ev, state);
19 void trace_event_set_state_dynamic(TraceEvent *ev, bool state)
21 bool state_pre;
22 assert(trace_event_get_state_static(ev));
25 * We ignore the "vcpu" property here, since there's no target code. Then
26 * dstate can only be 1 or 0.
28 state_pre = *(ev->dstate);
29 if (state_pre != state) {
30 if (state) {
31 trace_events_enabled_count++;
32 *(ev->dstate) = 1;
33 } else {
34 trace_events_enabled_count--;
35 *(ev->dstate) = 0;
40 void trace_event_set_vcpu_state_dynamic(CPUState *vcpu,
41 TraceEvent *ev, bool state)
43 /* should never be called on non-target binaries */
44 abort();
47 void trace_init_vcpu(CPUState *vcpu)
49 /* should never be called on non-target binaries */
50 abort();