]> git.proxmox.com Git - mirror_qemu.git/blame - trace/event-internal.h
virtio-pci: error out when both legacy and modern modes are disabled
[mirror_qemu.git] / trace / event-internal.h
CommitLineData
45be2f5d
LV
1/*
2 * Interface for configuring and controlling the state of tracing events.
3 *
17f7ac75 4 * Copyright (C) 2012-2016 Lluís Vilanova <vilanova@ac.upc.edu>
45be2f5d
LV
5 *
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 */
9
10#ifndef TRACE__EVENT_INTERNAL_H
11#define TRACE__EVENT_INTERNAL_H
12
13#include "trace/generated-events.h"
14
15
16/**
17 * TraceEvent:
18 * @id: Unique event identifier.
17f7ac75 19 * @vcpu_id: Unique per-vCPU event identifier.
45be2f5d
LV
20 * @name: Event name.
21 * @sstate: Static tracing state.
45be2f5d
LV
22 *
23 * Opaque generic description of a tracing event.
24 */
25typedef struct TraceEvent {
26 TraceEventID id;
17f7ac75 27 TraceEventVCPUID vcpu_id;
45be2f5d
LV
28 const char * name;
29 const bool sstate;
45be2f5d
LV
30} TraceEvent;
31
a4d50b1d 32void trace_event_set_state_dynamic_init(TraceEvent *ev, bool state);
45be2f5d 33
175de524 34#endif /* TRACE__EVENT_INTERNAL_H */