|
From: | Richard Henderson |
Subject: | Re: [PATCH v3 08/17] plugins: add inline operation per vcpu |
Date: | Wed, 7 Feb 2024 13:45:16 +1000 |
User-agent: | Mozilla Thunderbird |
On 2/6/24 19:24, Pierrick Bouvier wrote:
--- a/accel/tcg/plugin-gen.c +++ b/accel/tcg/plugin-gen.c @@ -442,6 +442,13 @@ static TCGOp *append_inline_cb(const struct qemu_plugin_dyn_cb *cb, char *ptr = cb->userp; size_t elem_size = 0; size_t offset = 0; + if (!ptr) { + /* use inline entry */ + ptr = cb->inline_insn.entry.score->data->data;
This value will not survive the first resize. You need to add a pointer dereference from the first "data". r~
[Prev in Thread] | Current Thread | [Next in Thread] |