mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
plugins: prepare introduction of new inline ops
Until now, only add_u64 was available, and all functions assumed this or were named uniquely. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240514174253.694591-4-alex.bennee@linaro.org>
This commit is contained in:
parent
b51ddd937f
commit
21032784e5
3 changed files with 16 additions and 6 deletions
|
@ -113,7 +113,7 @@ static void gen_udata_cb(struct qemu_plugin_dyn_cb *cb)
|
|||
tcg_temp_free_i32(cpu_index);
|
||||
}
|
||||
|
||||
static void gen_inline_cb(struct qemu_plugin_dyn_cb *cb)
|
||||
static void gen_inline_add_u64_cb(struct qemu_plugin_dyn_cb *cb)
|
||||
{
|
||||
GArray *arr = cb->inline_insn.entry.score->data;
|
||||
size_t offset = cb->inline_insn.entry.offset;
|
||||
|
@ -158,8 +158,8 @@ static void inject_cb(struct qemu_plugin_dyn_cb *cb)
|
|||
case PLUGIN_CB_REGULAR:
|
||||
gen_udata_cb(cb);
|
||||
break;
|
||||
case PLUGIN_CB_INLINE:
|
||||
gen_inline_cb(cb);
|
||||
case PLUGIN_CB_INLINE_ADD_U64:
|
||||
gen_inline_add_u64_cb(cb);
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue