Skip to contentSkip to conversation

log every write to Aarch64 regs

Qemu-devel Sergey Smolov 2 participants 3 messages Nov 23, 2016

lore
Share & tools
lore
#0 lore raw

Hello, List!

I have a subset of Aarch64 registers and I need to print something to QEMU log every time the emulator writes new data to them.

Is this problem fully or partially solvable in QEMU?

What QEMU components should I look inside to implement this?

Thanks in advance!

Signature · 2 lines
Sincerely yours,
Sergey Smolov
#1 lore raw
Quoted 8 lines · Sergey Smolov

Hello, List!

I have a subset of Aarch64 registers and I need to print something to QEMU log every time the emulator writes new data to them.

Is this problem fully or partially solvable in QEMU?

What QEMU components should I look inside to implement this?

For local experimentation you can use plain fprintf's or qemu_log. If you want something more performance orientated you'll want to look at the tracing infrastructure. See docs/tracing.txt in the source tree.

Quoted 2 lines

Thanks in advance!

--
Alex Bennée

#2 lore raw
In reply to Sergey Smolov
Quoted 4 lines · Sergey Smolov

Hello, List!

I have a subset of Aarch64 registers and I need to print something to QEMU log every time the emulator writes new data to them.

Sorry I forgot to ask what the subset was? System registers are generally easier as they tend to end up in helpers. Also this is slightly different for KVM and TCG based guests.

Quoted 6 lines

Is this problem fully or partially solvable in QEMU?

What QEMU components should I look inside to implement this?

Thanks in advance!

--
Alex Bennée