On 26 August 2011 18:35, Lluís <xscr...@gmx.net> wrote: > Benjamin Ylvisaker writes: >> I am working on a project for which I'd like to gather statistics >> about register usage. (For example, distributions of degree-of-use >> and dynamic lifetimes of register-values.) Is QEMU a good tool for >> doing this kind of work? Has anyone else done this? I looked at the >> tracing available in QEMU and it seems to be mostly for higher level >> things like memory accesses, function calls, basic block executions, >> etc. > > This is not currently possible. > > In fact, I've been developing (somewhat in the background) the kind of > features you're asking for, but it will still be at least a couple of > months before it's in a publishable state.
Interesting. I know the folks at STM have also done work in this area (see the QEMU Users Forum talk they did about dynamic tracing). Would you mind giving a quick summary of the sort of approach you've taken? I'm wondering if there's much overlap or if you and they are really addressing different problems. thanks -- PMM