qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 5/8] plugins: conditional callbacks


From: Richard Henderson
Subject: Re: [PATCH v3 5/8] plugins: conditional callbacks
Date: Mon, 25 Mar 2024 09:17:14 -1000
User-agent: Mozilla Thunderbird

On 3/25/24 02:41, Pierrick Bouvier wrote:
Extend plugins API to support callback called with a given criteria
(evaluated inline).

Added functions:
- qemu_plugin_register_vcpu_tb_exec_cond_cb
- qemu_plugin_register_vcpu_insn_exec_cond_cb

They expect as parameter a condition, a qemu_plugin_u64_t (op1) and an
immediate (op2). Callback is called if op1|cond|  op2 is true.

Signed-off-by: Pierrick Bouvier<pierrick.bouvier@linaro.org>
---
  include/qemu/plugin.h        |  8 ++++
  include/qemu/qemu-plugin.h   | 76 ++++++++++++++++++++++++++++++++++++
  plugins/plugin.h             |  8 ++++
  accel/tcg/plugin-gen.c       | 48 +++++++++++++++++++++++
  plugins/api.c                | 39 ++++++++++++++++++
  plugins/core.c               | 32 +++++++++++++++
  plugins/qemu-plugins.symbols |  2 +
  7 files changed, 213 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]