qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 09/33] plugins: Copy memory in qemu_plugin_insn_data


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 09/33] plugins: Copy memory in qemu_plugin_insn_data
Date: Mon, 29 Apr 2024 12:40:02 +0200
User-agent: Mozilla Thunderbird

On 25/4/24 01:31, Richard Henderson wrote:
Instead of returning a host pointer, copy the data into
storage provided by the caller.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
  include/qemu/qemu-plugin.h | 15 +++++++--------
  contrib/plugins/execlog.c  |  5 +++--
  contrib/plugins/howvec.c   |  4 ++--
  plugins/api.c              |  7 +++++--
  4 files changed, 17 insertions(+), 14 deletions(-)

  /**
   * struct qemu_info_t - system information for plugins
@@ -394,17 +394,16 @@ struct qemu_plugin_insn *
  qemu_plugin_tb_get_insn(const struct qemu_plugin_tb *tb, size_t idx);
/**
- * qemu_plugin_insn_data() - return ptr to instruction data
+ * qemu_plugin_insn_data() - copy instruction data

"copy of "?

   * @insn: opaque instruction handle from qemu_plugin_tb_get_insn()
+ * @dest: destination into which data is copied
+ * @len: length of dest

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

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