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. Meanwhile, there are some tools you can use to accomplish this (depending on your requirements), like valgrind or pintool. Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth