On 05/25/2011 09:42 AM, Nathan DeBardeleben wrote: > 1: Stop QEMU (maybe not necessary?) > 2: Drag down the set of registers > 3: Release QEMU (contingent on #1) > 4: Repeat over some periodic sampling rate. > 5: Produce a "gprof-like" graph of where the PC was during the time observed.
The gdb remote protocol is fairly simple. It would be pretty easy to start QEMU with the -gdb tcp::port option, and write a script to grab the data you want as well as format it as desired. It may be even easier to write the script in python and run it within gdb itself. r~