qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Looking for the correct way to pull register values out


From: Richard Henderson
Subject: Re: [Qemu-devel] Looking for the correct way to pull register values out of QEMU
Date: Wed, 25 May 2011 11:01:49 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10

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~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]