Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWyYS-0005yA-Qv for qemu-devel@nongnu.org; Thu, 29 Mar 2007 13:36:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWyYR-0005xy-IF for qemu-devel@nongnu.org; Thu, 29 Mar 2007 13:36:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWyYQ-0005xv-VK for qemu-devel@nongnu.org; Thu, 29 Mar 2007 12:36:54 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HWyVp-0001Jz-1y for qemu-devel@nongnu.org; Thu, 29 Mar 2007 13:34:13 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HWyRi-0000vQ-HZ for qemu-devel@nongnu.org; Thu, 29 Mar 2007 19:29:58 +0200 Received: from brigitte.dna.fi ([83.143.58.51]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Mar 2007 19:29:58 +0200 Received: from ananaza by brigitte.dna.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Mar 2007 19:29:58 +0200 From: Antti P Miettinen Date: Thu, 29 Mar 2007 20:29:03 +0300 Message-ID: <87ejn80xi8.fsf@brigitte.dna.fi> References: <12835c8f0703261313j45f7e23cx1773a20845370a4e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: news Subject: [Qemu-devel] Re: PC traces from QEMU Reply-To: ananaza@iki.fi, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org "Shashidhar Mysore" writes: > I intend to extract program counter streams from QEMU as a program executes. > Can you please point me to the hooks that I may have to insert into the QEMU > source code in order to extract the PC values? I used to do that with qemu 0.7. I did not dig into this deep enough to find the minimal changes but at least the following was enough: - define DEBUG_EXEC in cpu-exec.c - disable USE_DIRECT_JUMP in exec-all.h - disable USE_CODE_COPY in target-i386/cpu.h - force dc->jmp_opt to zero in target-i386/translate.c Would be nice if enabling PC traces were possible with e.g. command line (maybe requiring config time enable would be good too :-) -- http://www.iki.fi/~ananaza/