From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPIP4-0002vp-Kf for qemu-devel@nongnu.org; Wed, 25 May 2011 14:01:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPIP3-0005eW-Om for qemu-devel@nongnu.org; Wed, 25 May 2011 14:01:54 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:46865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPIP3-0005eN-LV for qemu-devel@nongnu.org; Wed, 25 May 2011 14:01:53 -0400 Received: by yxk8 with SMTP id 8so3775075yxk.4 for ; Wed, 25 May 2011 11:01:52 -0700 (PDT) Sender: Richard Henderson Message-ID: <4DDD440D.9050603@twiddle.net> Date: Wed, 25 May 2011 11:01:49 -0700 From: Richard Henderson MIME-Version: 1.0 References: <4DDD3160.70603@lanl.gov> In-Reply-To: <4DDD3160.70603@lanl.gov> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Looking for the correct way to pull register values out of QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nathan DeBardeleben Cc: qemu-devel@nongnu.org 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~