* [Qemu-devel] checking the number of target cpu cycles or instructions executed
@ 2010-12-22 12:19 Stefano Bonifazi
2010-12-23 17:42 ` Andreas Färber
0 siblings, 1 reply; 3+ messages in thread
From: Stefano Bonifazi @ 2010-12-22 12:19 UTC (permalink / raw)
To: QEMU Developers
Hi all! :)
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?
Thank you very much in advance!
Stefano B.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] checking the number of target cpu cycles or instructions executed
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
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Färber @ 2010-12-23 17:42 UTC (permalink / raw)
To: Stefano Bonifazi; +Cc: QEMU Developers
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] checking the number of target cpu cycles or instructions executed
2010-12-23 17:42 ` Andreas Färber
@ 2010-12-23 21:18 ` Stefano Bonifazi
0 siblings, 0 replies; 3+ messages in thread
From: Stefano Bonifazi @ 2010-12-23 21:18 UTC (permalink / raw)
To: Andreas Färber; +Cc: QEMU Developers
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-23 21:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.