From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lt2JR-0008Vu-1a for qemu-devel@nongnu.org; Sun, 12 Apr 2009 12:13:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lt2JL-0008Tp-2b for qemu-devel@nongnu.org; Sun, 12 Apr 2009 12:13:40 -0400 Received: from [199.232.76.173] (port=58474 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lt2JK-0008Ti-Pz for qemu-devel@nongnu.org; Sun, 12 Apr 2009 12:13:34 -0400 Received: from ti-out-0910.google.com ([209.85.142.184]:18746) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lt2JK-0007Mk-66 for qemu-devel@nongnu.org; Sun, 12 Apr 2009 12:13:34 -0400 Received: by ti-out-0910.google.com with SMTP id b6so1437768tic.18 for ; Sun, 12 Apr 2009 09:13:31 -0700 (PDT) MIME-Version: 1.0 Sender: hwan122@gmail.com Date: Sun, 12 Apr 2009 12:13:31 -0400 Message-ID: From: Han Wang Content-Type: multipart/alternative; boundary=001485f499eefe504304675de02f Subject: [Qemu-devel] Re: Total instruction count 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 --001485f499eefe504304675de02f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, All, This is a question regarding getting a total count of instructions being executed in qemu. I would like to know how much instruction it takes to boot into linux on a arm based processor. This is what I have done: - I used qemu-system-arm - I made a sd card image which contains the proper kernel, uImage and boot loader - I booted the system using this command ./qemu-system-arm -M beagle -sd /dev/mmcblk0 Note that I used the mameo3-port of qemu to work on beagle board emulation. There is an -d option in qemu-system-arm that allows me to do some logging. However, after counting the total number of instruction that has been logged. I doubt that the -d option only logs the instructions that have been translated, not the instructions that are actually executed. Since the total count I get from my log file is way smaller than what is should be. I wonder if there is anyway, or what modification should I do, to let qemu log the total number of instructions that has been executed. It may involves break the direct block-chaining mechanism inside qemu, I presume. Any advice? -- Han Wang Electrical and Computer Engineering Cornell University --001485f499eefe504304675de02f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, All,
=A0
=A0=A0 This is a question regarding getting a total cou= nt of instructions being executed in qemu.
=A0=A0 I would like to know h= ow much instruction it takes to boot into linux on a arm based processor.=A0=A0 This is what I have done:
=A0=A0=A0 - I used qemu-system-arm
=A0=A0=A0 - I made a sd card image wh= ich contains the proper kernel, uImage and boot loader
=A0=A0=A0 - I boo= ted the system using this command ./qemu-system-arm -M beagle -sd /dev/mmcb= lk0
=A0=A0 Note that I used the mameo3-port of qemu to work on beagle bo= ard emulation.

=A0=A0 There is an -d option in qemu-system-arm that allows me to do so= me logging. However, after counting the total number of instruction that ha= s been logged.
=A0=A0 I doubt that the -d option only logs the instructi= ons that have been translated, not the instructions that are actually execu= ted. Since the total count I get from my log file is way smaller than what = is should be.
=A0
=A0=A0 I wonder if there is anyway, or what modification should I d= o, to let qemu log the total number of instructions that has been executed.= It may involves break the direct block-chaining mechanism inside qemu, I p= resume. Any advice?
=A0=A0

--
Han Wang
Electrical and Computer Eng= ineering
Cornell University


--001485f499eefe504304675de02f--