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