From: Stefano Bonifazi <stefboombastic@gmail.com>
To: "Andreas Färber" <andreas.faerber@web.de>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] checking the number of target cpu cycles or instructions executed
Date: Thu, 23 Dec 2010 22:18:41 +0100 [thread overview]
Message-ID: <4D13BCB1.6030206@gmail.com> (raw)
In-Reply-To: <71276548-B635-4B30-9660-4F61F6930452@web.de>
On 12/23/2010 06:42 PM, Andreas Färber wrote:
> Hi,
>
> Am 22.12.2010 um 13:19 schrieb Stefano Bonifazi:
>
>> how can I check the number of target cpu cycles or target
>> instructions executed inside qemu-user (i.e. qemu-ppc)?
>> Is there any variable I can inspect for such informations?
>
> QEMU's emulation is not cycle-accurate, so you will not be able to
> retrieve CPU cycle info to my knowledge.
>
> As for instructions, take a look at the -icount option.
>
> Andreas
Hi!
Thank You very much! I understood it was not a cycle accurate
emulator.. In my case I am more interested in how many instructions the
target machine would execute rather than how many host cycles or
instructions..so I think counted fetched target instructions can be good..
Anyway how to switch on -icount option for user emulation? Setting
use_icount to 1 (or2) into exec.c does not work: the execution hangs,
and qemu_icount is not incremented..
Thank you!
Best Regards,
Stefano B.
prev parent reply other threads:[~2010-12-23 21:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-22 12:19 [Qemu-devel] checking the number of target cpu cycles or instructions executed Stefano Bonifazi
2010-12-23 17:42 ` Andreas Färber
2010-12-23 21:18 ` Stefano Bonifazi [this message]
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=4D13BCB1.6030206@gmail.com \
--to=stefboombastic@gmail.com \
--cc=andreas.faerber@web.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.