From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jz1lP-0000MZ-4B for qemu-devel@nongnu.org; Wed, 21 May 2008 23:46:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jz1lN-0000M3-Ks for qemu-devel@nongnu.org; Wed, 21 May 2008 23:46:46 -0400 Received: from [199.232.76.173] (port=44848 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jz1lN-0000Ly-GH for qemu-devel@nongnu.org; Wed, 21 May 2008 23:46:45 -0400 Received: from el-out-1112.google.com ([209.85.162.183]:30704) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jz1lN-0001px-54 for qemu-devel@nongnu.org; Wed, 21 May 2008 23:46:45 -0400 Received: by el-out-1112.google.com with SMTP id n30so964576elf.19 for ; Wed, 21 May 2008 20:46:44 -0700 (PDT) Message-ID: <5d6222a80805212046l5c3e6f38q381656abf7a1f613@mail.gmail.com> Date: Thu, 22 May 2008 00:46:44 -0300 From: "Glauber Costa" Subject: Re: [Qemu-devel] Re: Performance Monitoring In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3000d2e90805201156g30050a68ve9187e3b94341e99@mail.gmail.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, May 21, 2008 at 1:10 PM, Charles Duffy wrote: > Cheif Jones wrote: >> >> I'm doing a research project in which i want to run an OS under an >> emulator for a period of time and get full CPU opcode statistics (how many >> times every opcode was executed). As far as i understand the Qemu design, it >> is doing "JIT" translation of terget opcode to host opcodes to improve >> performance, and so there is no easy way to count target opcodes (e.g a loop >> is compiled JIT and runs natively). > > Is an actual emulator necessary, or could you use something like an > instrumented UML kernel? I'd think that would be a much simpler approach. Since he claims to need opcode statistics, and UML won't trap any instruction but the privileged ones, does not seem feasible. -- Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."