log every write to Aarch64 regs
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
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
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