2 * Copyright (C) 2018, Emilio G. Cota <cota@braap.org>
4 * License: GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
14 #include <qemu-plugin.h>
16 QEMU_PLUGIN_EXPORT int qemu_plugin_version = QEMU_PLUGIN_VERSION;
19 * Empty TB translation callback.
20 * This allows us to measure the overhead of injecting and then
21 * removing empty instrumentation.
23 static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb)
26 QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id,
27 const qemu_info_t *info,
28 int argc, char **argv)
30 qemu_plugin_register_vcpu_tb_trans_cb(id, vcpu_tb_trans);