|
@@ -46,22 +46,6 @@ static inline void qemu_plugin_add_opts(void)
|
|
|
|
|
|
void qemu_plugin_opt_parse(const char *optarg, QemuPluginList *head);
|
|
void qemu_plugin_opt_parse(const char *optarg, QemuPluginList *head);
|
|
int qemu_plugin_load_list(QemuPluginList *head);
|
|
int qemu_plugin_load_list(QemuPluginList *head);
|
|
-#else /* !CONFIG_PLUGIN */
|
|
|
|
-static inline void qemu_plugin_add_opts(void)
|
|
|
|
-{ }
|
|
|
|
-
|
|
|
|
-static inline void qemu_plugin_opt_parse(const char *optarg,
|
|
|
|
- QemuPluginList *head)
|
|
|
|
-{
|
|
|
|
- error_report("plugin interface not enabled in this build");
|
|
|
|
- exit(1);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static inline int qemu_plugin_load_list(QemuPluginList *head)
|
|
|
|
-{
|
|
|
|
- return 0;
|
|
|
|
-}
|
|
|
|
-#endif /* !CONFIG_PLUGIN */
|
|
|
|
|
|
|
|
union qemu_plugin_cb_sig {
|
|
union qemu_plugin_cb_sig {
|
|
qemu_plugin_simple_cb_t simple;
|
|
qemu_plugin_simple_cb_t simple;
|
|
@@ -182,8 +166,6 @@ struct qemu_plugin_insn *qemu_plugin_tb_insn_get(struct qemu_plugin_tb *tb)
|
|
return insn;
|
|
return insn;
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PLUGIN
|
|
|
|
-
|
|
|
|
void qemu_plugin_vcpu_init_hook(CPUState *cpu);
|
|
void qemu_plugin_vcpu_init_hook(CPUState *cpu);
|
|
void qemu_plugin_vcpu_exit_hook(CPUState *cpu);
|
|
void qemu_plugin_vcpu_exit_hook(CPUState *cpu);
|
|
void qemu_plugin_tb_trans_cb(CPUState *cpu, struct qemu_plugin_tb *tb);
|
|
void qemu_plugin_tb_trans_cb(CPUState *cpu, struct qemu_plugin_tb *tb);
|
|
@@ -207,6 +189,21 @@ void qemu_plugin_disable_mem_helpers(CPUState *cpu);
|
|
|
|
|
|
#else /* !CONFIG_PLUGIN */
|
|
#else /* !CONFIG_PLUGIN */
|
|
|
|
|
|
|
|
+static inline void qemu_plugin_add_opts(void)
|
|
|
|
+{ }
|
|
|
|
+
|
|
|
|
+static inline void qemu_plugin_opt_parse(const char *optarg,
|
|
|
|
+ QemuPluginList *head)
|
|
|
|
+{
|
|
|
|
+ error_report("plugin interface not enabled in this build");
|
|
|
|
+ exit(1);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline int qemu_plugin_load_list(QemuPluginList *head)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline void qemu_plugin_vcpu_init_hook(CPUState *cpu)
|
|
static inline void qemu_plugin_vcpu_init_hook(CPUState *cpu)
|
|
{ }
|
|
{ }
|
|
|
|
|