qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Memory callback
@ 2020-07-08 13:53 Super Man
  0 siblings, 0 replies; only message in thread
From: Super Man @ 2020-07-08 13:53 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 795 bytes --]

Sorry to bother you, I would like to ask a question.I want to use qemu to
monitor the information of the target thread reading and writing memory. I
see that qemu supports the tcg plugin, but I just find the following code
in plugin-gen.c .Do I just need to add a record function in it? How do I
read the current register values such as rip, rsp, how do I know the
current target address and data that the CPU read or written?Is there any
reference example?

/*
> * These helpers are stubs that get dynamically switched out for calls
> * direct to the plugin if they are subscribed to.
> */
> void HELPER(plugin_vcpu_udata_cb)(uint32_t cpu_index, void *udata)
> { }
> void HELPER(plugin_vcpu_mem_cb)(unsigned int vcpu_index,
> qemu_plugin_meminfo_t info, uint64_t vaddr,
> void *userdata)
> { }

[-- Attachment #2: Type: text/html, Size: 9826 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-08 16:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-08 13:53 Memory callback Super Man

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).