qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Executed Host Instructions


From: Ayaz Akram
Subject: Re: [Qemu-devel] Executed Host Instructions
Date: Tue, 28 Jun 2016 11:24:27 -0400

Thanks for your replies.

I am bit confused about -d exec logging. If I am not mistaken it logs the
starting addresses of translation blocks that get executed. How will
translation block chaining effect this? I mean if one tb is chained to many
other tb's, by counting instructions in each tb (by -d out_asm logging) and
-d exec logging, how will the total count of instructions include effect of
tb chaining ?

Thanks !


On Tue, Jun 28, 2016 at 7:17 AM, Peter Maydell <address@hidden>
wrote:

> On 28 June 2016 at 11:50, Lluís Vilanova <address@hidden> wrote:
> > Ayaz Akram writes:
> >
> >> Hi All,
> >> I want to count number of host instructions (only for guest code)
> executed
> >> when qemu emulates an application. I wonder if helper functions are
> >> supported with tcg back end as well, which can be a possible solution
> for
> >> the mentioned problem ? If not, is there any other solution in someone's
> >> mind ?
> >
> > If you don't care about helpers, you can use QEMU's log functionality (-d
> > out_asm).
>
> Note that this doesn't directly count instructions -- it only
> displays the assembly at translate time, and you'd then have
> to calculate the actual executions based on -d exec logging,
> and adjust it to deal with exceptions.
>
> It ought to be possible to use the icount machinery to trace
> instruction execution counts, but we don't do it today.
>
> thanks
> -- PMM
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]