From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43383 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhfEo-0005mI-CN for qemu-devel@nongnu.org; Tue, 25 Jan 2011 04:31:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhfCF-0008Gd-5Q for qemu-devel@nongnu.org; Tue, 25 Jan 2011 04:28:20 -0500 Received: from mail-ey0-f173.google.com ([209.85.215.173]:34819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhfCE-0008GZ-Uj for qemu-devel@nongnu.org; Tue, 25 Jan 2011 04:28:19 -0500 Received: by eyg7 with SMTP id 7so2583966eyg.4 for ; Tue, 25 Jan 2011 01:28:18 -0800 (PST) Message-ID: <4D3E97AD.2030109@gmail.com> Date: Tue, 25 Jan 2011 10:28:13 +0100 From: Stefano Bonifazi MIME-Version: 1.0 Subject: Re: [Qemu-devel] TCG flow vs dyngen 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> <20110125090501.GA30239@edde.se.axis.com> In-Reply-To: <20110125090501.GA30239@edde.se.axis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" Cc: Dushyant Bansal , qemu-devel@nongnu.org On 01/25/2011 10:05 AM, Edgar E. Iglesias wrote: > 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 Thank you! Already tried long ago, it doesn't work with qemu-user..If I remember fine its core was in files not used in qemu-user :( Regards, Stefano B.