[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: TCG plugin : problem with call back in SW RISCV instructions
From: |
BRICOUT Thaddée |
Subject: |
RE: TCG plugin : problem with call back in SW RISCV instructions |
Date: |
Mon, 13 Feb 2023 08:14:47 +0000 |
Hello,
Thanks for your answer but I already fix my bug.
I placed the insnPrt (from qemu_plugin_tb_get_insn) in argument for the call
back function (udata) but it was modify before used.
If I put the data I need in another variable, this one is not modify and the
call back work normally.
Thaddée
-----Message d'origine-----
De : Alex Bennée <alex.bennee@linaro.org>
Envoyé : mardi 7 février 2023 14:31
À : BRICOUT Thaddée <thaddee.bricout@cea.fr>
Cc : qemu-discuss@nongnu.org
Objet : Re: TCG plugin : problem with call back in SW RISCV instructions
BRICOUT Thaddée <thaddee.bricout@cea.fr> writes:
> I forgot to attach my plugin and log file.
>
> Thaddée BRICOUT
>
>
>
> De : BRICOUT Thaddée
> Envoyé : mardi 10 janvier 2023 17:19
> À : 'qemu-discuss@nongnu.org' <qemu-discuss@nongnu.org> Objet : TCG
> plugin : problem with call back in SW RISCV instructions
>
>
>
> Hi, everyone,
>
> I need to execute a call back for every SW RISCV instruction executed.
> When I add a call back in this instruction and then I print the
> instructions in the call back, the result does not show only SW
> instructions but also others. (cf. log.txt line 518)
>
> I think the call back is not called only when sw instruction is executed.
>
> Do you have any ideas to fix this problem?
Your plugin is only registering a memory callback, not an execution one
(qemu_plugin_register_vcpu_insn_exec_cb).
Are you aware of the execlog plugin that is in contrib/plugins?
>
> Thanks
>
> Thaddée BRICOUT
>
> [4. InsnCategory-riscv.h --- text/plain; InsnCategory-riscv.h]...
>
> [5. log.txt --- text/plain; log.txt]...
>
> [6. plugin_test.c --- text/plain; plugin_test.c]...
--
Alex Bennée
Virtualisation Tech Lead @ Linaro