Re: [Qemu-devel] Executed Host Instructions

2016-06-30 Thread Peter Maydell
On 30 June 2016 at 02:13, Ayaz Akram wrote: > Hi all ! > I hope you wouldn't mind a quick clarification regarding this question . If > I do not take into account the exceptions and keep on adding number of > translated instructions inside a TB (found through -d out_asm) for each time > TB is seen

Re: [Qemu-devel] Executed Host Instructions

2016-06-29 Thread Ayaz Akram
Hi all ! I hope you wouldn't mind a quick clarification regarding this question . If I do not take into account the exceptions and keep on adding number of translated instructions inside a TB (found through -d out_asm) for each time TB is seen in the exec trace (found through -d exec and nochaining

Re: [Qemu-devel] Executed Host Instructions

2016-06-28 Thread Peter Maydell
On 28 June 2016 at 16:53, Ayaz Akram wrote: > Thanks Peter. This should help. > > I wonder if this -d nochain option is supported in qemu-2.4.1. I am using it > for x86 user mode emulation but, -d --help is not showing any such option. No, you need 2.5.0 or newer. In 2.4.x you have to hack QEMU's

Re: [Qemu-devel] Executed Host Instructions

2016-06-28 Thread Ayaz Akram
Thanks Peter. This should help. I wonder if this -d nochain option is supported in qemu-2.4.1. I am using it for x86 user mode emulation but, -d --help is not showing any such option. Thanks On Tue, Jun 28, 2016 at 11:28 AM, Peter Maydell wrote: > On 28 June 2016 at 16:24, Ayaz Akram wrote: >

Re: [Qemu-devel] Executed Host Instructions

2016-06-28 Thread Ayaz Akram
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

Re: [Qemu-devel] Executed Host Instructions

2016-06-28 Thread Peter Maydell
On 28 June 2016 at 16:24, Ayaz Akram wrote: > 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

Re: [Qemu-devel] Executed Host Instructions

2016-06-28 Thread Peter Maydell
On 28 June 2016 at 11:50, Lluís Vilanova 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 so

Re: [Qemu-devel] Executed Host Instructions

2016-06-28 Thread Lluís Vilanova
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 an