[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] Static instrumentation (aka guest code tracing)
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] [RFC] Static instrumentation (aka guest code tracing) |
Date: |
Fri, 26 Nov 2010 19:06:31 +0000 |
User-agent: |
KMail/1.13.5 (Linux/2.6.36-trunk-amd64; KDE/4.4.5; x86_64; ; ) |
> 2) instrumenting i386 is extremely time-consuming (for the developer)
>
> As my work is not tied to a specific target architecture, I was thinking of
> shifting into PPC, as the ISA is pretty regular and that would certainly
> make the process easier by just patching a small set of places in the
> code.
>
>...
> The current example points are:
>
> FETCH(vaddress, size, used_registers, defined_registers)
Duplicating the insn decoder to determine which registers are accessed is not
a maintainable solution. Likewise requiring separate tracing hooks be added to
the existing decoders is extremely unlikely to be a feasible long-term
solution. Anything solution that tries to separate CPU instrumentation/tracing
from code generation is IMO fundamentally flawed and will rapidly bitrot
beyond usefulness.
I'd also posit that instrumenting changes in sate is of very limited use if
you don't know what the new value is.
You almost certainly want to do this using the equivalent of a memory
watchpoint on the CPUState structure.
Paul
- Re: [Qemu-devel] [RFC] Static instrumentation (aka guest code tracing),
Paul Brook <=