Skip to contentSkip to conversation

Tracing memory accesses by emulated systems

Qemu-devel Christian Leber 2 participants 2 messages Feb 4, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

I would like to trace all "physical" memory read/write operations for x86_64, but I have to admit that I'm not sure where exactly this has to be implemented.

Could somebody give me some hints where and how I could do that? (or is there already a patch that does this? on irc somebody suggested that something like that could exist, but I was not able to find it)

Regards

Christian Leber

Signature · 1 line
http://rettetdieti.vde-uni-mannheim.de/
#1 lore raw

Am Sonntag, den 04.02.2007, 17:17 +0100 schrieb Christian Leber:

Quoted 6 lines

Hello,

I would like to trace all "physical" memory read/write operations for x86_64, but I have to admit that I'm not sure where exactly this has to be implemented.

Quoted 7 lines

Could somebody give me some hints where and how I could do that? (or is there already a patch that does this? on irc somebody suggested that something like that could exist, but I was not able to find it)

Regards

Christian Leber

hello christian!

i'm not sure if it applies for 64bit (but i'd assume it does). afaik the easiest way to catch "all" (dma operations are not covered there - i think) memory accesses is via the ld*,st* macros in softmmu_helper.h and softmmu_header.h. at least this is the way i did that.

cheers
m.