From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54206 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhfF8-0007g6-Vg for qemu-devel@nongnu.org; Tue, 25 Jan 2011 04:31:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Phf9d-0007gL-Gn for qemu-devel@nongnu.org; Tue, 25 Jan 2011 04:25:38 -0500 Received: from mail-fx0-f45.google.com ([209.85.161.45]:47898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Phf9d-0007g2-6M for qemu-devel@nongnu.org; Tue, 25 Jan 2011 04:25:37 -0500 Received: by fxm12 with SMTP id 12so5246297fxm.4 for ; Tue, 25 Jan 2011 01:25:36 -0800 (PST) Date: Tue, 25 Jan 2011 10:05:01 +0100 From: "Edgar E. Iglesias" Subject: Re: [Qemu-devel] TCG flow vs dyngen Message-ID: <20110125090501.GA30239@edde.se.axis.com> References: <000001cbb58c$221f5a00$011aa8c0@side35ya3cah0n> <4D330D01.9060801@gmail.com> <4D3CA28C.5080907@landley.net> <4D3D9334.6050801@gmail.com> <4D3DBEC8.5090903@cse.iitd.ac.in> <4D3DD531.8030501@gmail.com> <4D3E8232.3090805@cse.iitd.ac.in> <4D3E9227.4090701@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D3E9227.4090701@gmail.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefano Bonifazi Cc: Dushyant Bansal , qemu-devel@nongnu.org On Tue, Jan 25, 2011 at 10:04:39AM +0100, Stefano Bonifazi wrote: > Again wow!! Is that really possible? Some sort of callback triggered at > every instruction execution? > > Yes, this mechanism works. I have written a code to count different > > kinds of instructions. > Great! that opens a lot of possibilities!. > > It exists in file qemu/target-i386/translate.c > Ops right! I checked target-ppc/translate.c as I need Power-PC as > target.. I wonder what function replaces it there.. > > You are also talking about qemu source code privided here > > http://wiki.qemu.org/Download, right? > Yes I am using this http://wiki.qemu.org/download/qemu-0.13.0.tar.gz > > If you need, I can give the source code of counting implementation > > with some documentation. > > Hope this helps. > > > Wow that would be awesome! I'd really appreciate it very much! Thank you! :) > You are free of sending it to my address! :) Hi, If you are interested in instruction counting maybe you should take a look at the -icount option as well. Cheers