mbox series

[0/2] plugins: add tb convenience functions

Message ID 20250127201734.1769540-1-lacraig3@gmail.com (mailing list archive)
Headers show
Series plugins: add tb convenience functions | expand

Message

Luke Craig Jan. 27, 2025, 8:17 p.m. UTC
This PR extends the plugin API with two functions which allow convenient access around tbs.

The first, qemu_plugin_tb_size, provides a mechanism for determining the total size of a translation block.

The second, qemu_plugin_tb_get_insn_by_vaddr, allows users to get a reference to an instruction by its virtual address rather than just its index.

Luke Craig (2):
  plugin: extend API with qemu_plugin_tb_get_insn_by_vaddr
  plugin: extend API with qemu_plugin_tb_size

 include/qemu/qemu-plugin.h | 21 +++++++++++++++++++++
 plugins/api.c              | 18 ++++++++++++++++++
 2 files changed, 39 insertions(+)