[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: PC traces from QEMU
From: |
Thiemo Seufer |
Subject: |
Re: [Qemu-devel] Re: PC traces from QEMU |
Date: |
Tue, 3 Apr 2007 00:17:58 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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