Skip to contentSkip to conversation

Performance counter

Qemu-devel Peter Nguyen 3 participants 3 messages Sep 10, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I'm using qemu at the moment to run a system for debugging purposes. I was wondering whether qemu does actually emulate the performance counters on IA32. Every time i try to read the value out, it consistently gives me zero even though i have written to the given model specific register.

Thanks
Peter Nguyen

#1 lore raw

Hi,

the performance registers aren't implemented on QEMU.

Best regards,
Filip Navara

Quoted 14 lines · Peter Nguyen

Hi,

I'm using qemu at the moment to run a system for debugging purposes. I was wondering whether qemu does actually emulate the performance counters on IA32. Every time i try to read the value out, it consistently gives me zero even though i have written to the given model specific register.

Thanks
Peter Nguyen

#2 lore raw
Quoted 7 lines
Quoted 5 lines

I'm using qemu at the moment to run a system for debugging purposes. I was wondering whether qemu does actually emulate the performance counters on IA32. Every time i try to read the value out, it consistently gives me zero even though i have written to the given model specific register.

the performance registers aren't implemented on QEMU.

QEMU is not cycle accurate, nor does it emulate memory caches or have an accurate TLB model, so I'm fairly sure we do can have provide meaningful values for most of the counters.

Paul