Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzYKk-0006YX-QC for qemu-devel@nongnu.org; Wed, 07 Apr 2010 12:42:30 -0400 Received: from [140.186.70.92] (port=54855 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzYKf-0006Wb-9s for qemu-devel@nongnu.org; Wed, 07 Apr 2010 12:42:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzYKZ-0007wj-EL for qemu-devel@nongnu.org; Wed, 07 Apr 2010 12:42:25 -0400 Received: from web43132.mail.sp1.yahoo.com ([216.252.121.62]:23960) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NzYKZ-0007wV-4Q for qemu-devel@nongnu.org; Wed, 07 Apr 2010 12:42:19 -0400 Message-ID: <923436.51543.qm@web43132.mail.sp1.yahoo.com> References: <639622.90232.qm@web43140.mail.sp1.yahoo.com> <744151.25169.qm@web43135.mail.sp1.yahoo.com> Date: Wed, 7 Apr 2010 09:42:17 -0700 (PDT) From: =?iso-8859-1?Q?Boris_C=E1mara?= Subject: Res: Res: [Qemu-devel] full dynamic instruction trace for MIPS target In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vince Weaver Cc: qemu-devel@nongnu.org >This is like a virtual instruction that lives in =0A>the TB and calls my c= ounting function. So each time the TB is re-executed =0A>the calls happen = again, as they are part of the TB instruction stream.=0A=0AIt sounds good! = Today a will apply the patches and run it to get a better understanding.=0A= =0A> Did you get correct values for your counters in bbvs[bb] ?=0A=0AYes, c= oncidently last week I have read your HIPEAC paper, great job.=0A=0A_______= _________________________=0ADe: Vince Weaver =0APara= : Boris C=E1mara =0ACc: qemu-devel@nongnu.org=0AEnvi= adas: Ter=E7a-feira, 6 de Abril de 2010 23:33:57=0AAssunto: Re: Res: [Qemu-= devel] full dynamic instruction trace for MIPS target=0A=0AOn Tue, 6 Apr 20= 10, Boris C=E1mara wrote:=0A=0A>The aproach you are using on =0A>http://www= .csl.cornell.edu/~vince/projects/qemu-trace/ to get the PC dump =0A>is simi= lar to mine but as you dont disable the TB caches It is not a full =0A>exec= ution trace. =0A=0AI can assure you that it does in fact work.=0A=0A> You o= nly dump the PC when they are compiled and inserted =0A> on the TB cache.= =0A=0Ano, look closer. My code at instrumentation time inserts a helper-op= =0Aafter each instruction. This is like a virtual instruction that lives = in =0Athe TB and calls my counting function. So each time the TB is re-exe= cuted =0Athe calls happen again, as they are part of the TB instruction str= eam.=0A=0A> Did you get correct values for your counters in bbvs[bb] ?=0A= =0Ayes. And the resuts match valgrind, pin, and hardware performance =0Aco= unters.=0A=0AVince=0A=0A=0A=0A________________________________=0ADe: Vince = Weaver =0APara: Boris C=E1mara =0ACc: qemu-devel@nongnu.org=0AEnviadas: Segunda-feira, 5 de Abril de 201= 0 22:41:52=0AAssunto: Re: [Qemu-devel] full dynamic instruction trace for M= IPS target=0A=0A=0A> I think the correct way to get the full instruction tr= ace on a MIPS =0A> emulated processor is:=0A=0Athe way you describe is slow= because you are constantly re-generating the =0ATBs. The best way to do t= his is to add your instrumentation to the TBs.=0A=0AI have code that does t= hat for a recent version of Qemu here:=0A http://www.csl.cornell.edu/~vinc= e/projects/qemusim/=0A=0Aalthough it outputs Basic-Block vectors, not a ful= l memory trace like you =0Awant. It has been validated to match proper ins= truction counts using =0Ahardware performnce counters though.=0A=0AI also h= ave code creating full instruction/memory traces for Qemu MIPS =0Athat can = be found here:=0A http://www.csl.cornell.edu/~vince/projects/qemu-trace/= =0A=0Abut it's against Qemu from 2007 pre-dating the TCG changeover so of = =0Alimited use probably. I hvae some code somewhere that updated this to = =0Awork with TCG but I don't know what happened to it.=0A=0AVince=0A=0A=0A = ______________________________________________________________________= ______________=0AVeja quais s=E3o os assuntos do momento no Yahoo! +Buscado= s=0Ahttp://br.maisbuscados.yahoo.com=0A=0A-- =0A/* Vince Weaver vince@csl= .cornell.edu http://csl.cornell.edu/~vince */=0A=0Amain(){char O,o[66]=3D= "|\n\\/_ ",*I=3Do+7,l[]=3D"B!FhhBHCWE9C?cJFKET$+h'Iq*chT"=0A,i=3D0,_;while= (_=3Dl[i++])for(O=3D0;O++<_>>5;)*I=3D*(I++-(_&31));*I=3D0;puts(o+5);}=0A=0A= =0A __________________________________________________________________= __________________=0AVeja quais s=E3o os assuntos do momento no Yahoo! +Bus= cados=0Ahttp://br.maisbuscados.yahoo.com