From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYVqf-0003lW-K9 for qemu-devel@nongnu.org; Mon, 02 Apr 2007 19:22:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYVqd-0003lJ-Vx for qemu-devel@nongnu.org; Mon, 02 Apr 2007 19:22:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYVqd-0003lG-TD for qemu-devel@nongnu.org; Mon, 02 Apr 2007 19:22:03 -0400 Received: from phoenix.bawue.net ([193.7.176.60] helo=mail.bawue.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HYVnY-0006IO-4f for qemu-devel@nongnu.org; Mon, 02 Apr 2007 19:18:52 -0400 Date: Tue, 3 Apr 2007 00:17:58 +0100 Subject: Re: [Qemu-devel] Re: PC traces from QEMU Message-ID: <20070402231758.GA3601@networkno.de> References: <12835c8f0703261313j45f7e23cx1773a20845370a4e@mail.gmail.com> <87ejn80xi8.fsf@brigitte.dna.fi> <20070329203736.GA7024@miranda.arrow> <12835c8f0703291828y31e5b962i7a52527b8db63a98@mail.gmail.com> <20070330111016.GA8305@miranda.arrow> <12835c8f0704021532y4c78c78btd26d9526726951db@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12835c8f0704021532y4c78c78btd26d9526726951db@mail.gmail.com> From: Thiemo Seufer Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shashidhar Mysore Cc: qemu-devel@nongnu.org Shashidhar Mysore wrote: > Hi Stuart, > > Thanks for the patch. It works well for me, except that the log file grows > so huge and qemu slows down quite a lot. Did you have problems with this? I > was wondering if there was a way to actually begin the PC trace collection > after completely booting QEMU and also restrict it to a particular process > ID? FWIW, I would appreciate a patch which makes this a command line / monitor log option called "pc". :-) [snip] > >--- target-i386/helper.c 1 Feb 2007 22:12:19 -0000 1.74 > >+++ target-i386/helper.c 30 Mar 2007 11:02:09 -0000 > >@@ -30,6 +30,16 @@ > >} while (0) > >#endif > > > >+void helper_dump_pc(target_ulong pc) > >+{ > >+ if (logfile) > >+#ifdef TARGET_X86_64 > >+ fprintf(logfile, "PC = %016" PRIx64 "\n", pc); > >+#else > >+ fprintf(logfile, "PC = %08x\n", pc); > >+#endif We have TARGET_FMT_lx for that. Thiemo