qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Han Wang <hw342@cornell.edu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: Total instruction count
Date: Sun, 12 Apr 2009 12:13:31 -0400	[thread overview]
Message-ID: <aee85ae60904120913r75205cc1v468e891f3aadc221@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1293 bytes --]

                 reply	other threads:[~2009-04-12 16:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aee85ae60904120913r75205cc1v468e891f3aadc221@mail.gmail.com \
    --to=hw342@cornell.edu \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).