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. If it matters, I am currently working in Ubuntu running in a VM on OS X and using the x86_64-linux-user target.
Thanks, Ben