xref: /qemu/include/qemu/plugin-event.h (revision 83ecdb18)
1 /*
2  * Copyright (C) 2017, Emilio G. Cota <cota@braap.org>
3  *
4  * License: GNU GPL, version 2 or later.
5  *   See the COPYING file in the top-level directory.
6  */
7 #ifndef QEMU_PLUGIN_EVENT_H
8 #define QEMU_PLUGIN_EVENT_H
9 
10 /*
11  * Events that plugins can subscribe to.
12  */
13 enum qemu_plugin_event {
14     QEMU_PLUGIN_EV_VCPU_INIT,
15     QEMU_PLUGIN_EV_VCPU_EXIT,
16     QEMU_PLUGIN_EV_VCPU_TB_TRANS,
17     QEMU_PLUGIN_EV_VCPU_IDLE,
18     QEMU_PLUGIN_EV_VCPU_RESUME,
19     QEMU_PLUGIN_EV_VCPU_SYSCALL,
20     QEMU_PLUGIN_EV_VCPU_SYSCALL_RET,
21     QEMU_PLUGIN_EV_FLUSH,
22     QEMU_PLUGIN_EV_ATEXIT,
23     QEMU_PLUGIN_EV_MAX, /* total number of plugin events we support */
24 };
25 
26 #endif /* QEMU_PLUGIN_EVENT_H */
27