tests/docker/docker.py: check and run .pre script
[qemu/ar7.git] / stubs / trace-control.c
blobfe59836fce4d78f567dbd386f2ffcb31ff139a6d
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(TraceEvent *ev, bool state)
16 TraceEventID id;
17 assert(trace_event_get_state_static(ev));
18 id = trace_event_get_id(ev);
19 trace_events_enabled_count += state - trace_events_dstate[id];
20 trace_events_dstate[id] = state;
23 void trace_event_set_vcpu_state_dynamic(CPUState *vcpu,
24 TraceEvent *ev, bool state)
26 /* should never be called on non-target binaries */
27 abort();