Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-26 Thread Emilio G. Cota
On Sun, Jun 25, 2017 at 15:16:46 +0300, Lluís Vilanova wrote: > Lluís Vilanova writes: > > > Jayanto Minocha writes: > >> Lluis, > >> My modifications were almost the same as those done by Emilio. There were > >> no memory trace events in the trace file. > > > I'll take a look at it after I finis

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-26 Thread Peter Maydell
On 26 June 2017 at 13:04, Lluís Vilanova wrote: > Peter Maydell writes: > >> On 26 June 2017 at 10:26, Lluís Vilanova wrote: >>> There's two places where memory access tracing is triggered: >>> >>> * tcg_gen_qemu_ld/st_... >>> * ld/st templates (both softmmu and user) >>> >>> AFAIK, helpers use t

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-26 Thread Lluís Vilanova
Peter Maydell writes: > On 26 June 2017 at 10:26, Lluís Vilanova wrote: >> There's two places where memory access tracing is triggered: >> >> * tcg_gen_qemu_ld/st_... >> * ld/st templates (both softmmu and user) >> >> AFAIK, helpers use the ld/st templates to access guest memory. > Mostly, but

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-26 Thread Peter Maydell
On 26 June 2017 at 10:26, Lluís Vilanova wrote: > There's two places where memory access tracing is triggered: > > * tcg_gen_qemu_ld/st_... > * ld/st templates (both softmmu and user) > > AFAIK, helpers use the ld/st templates to access guest memory. Mostly, but there are one or two special cases

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-26 Thread Lluís Vilanova
Alex Bennée writes: > Lluís Vilanova writes: >> Alex Bennée writes: >> >>> Peter Maydell writes: >> On 20 June 2017 at 12:02, Lluís Vilanova wrote: > Jayanto Minocha writes: >> But that is only used to instrument the cpu_ld/cpu_st macros, which is >> only >> called in t

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-25 Thread Alex Bennée
Lluís Vilanova writes: > Alex Bennée writes: > >> Peter Maydell writes: > >>> On 20 June 2017 at 12:02, Lluís Vilanova wrote: Jayanto Minocha writes: > But that is only used to instrument the cpu_ld/cpu_st macros, which is > only > called in the case of a tlb miss. >

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-25 Thread Lluís Vilanova
Alex Bennée writes: > Peter Maydell writes: >> On 20 June 2017 at 12:02, Lluís Vilanova wrote: >>> Jayanto Minocha writes: But that is only used to instrument the cpu_ld/cpu_st macros, which is only called in the case of a tlb miss. >>> I've been going over the archives, and it

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-25 Thread Lluís Vilanova
Lluís Vilanova writes: > Jayanto Minocha writes: >> Lluis, >> My modifications were almost the same as those done by Emilio. There were >> no memory trace events in the trace file. > I'll take a look at it after I finish revamping the generic translation loop > series (hopefully today). I just s

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-21 Thread Lluís Vilanova
Jayanto Minocha writes: > Lluis, > My modifications were almost the same as those done by Emilio. There were > no memory trace events in the trace file. I'll take a look at it after I finish revamping the generic translation loop series (hopefully today). Thanks, Lluis > -J > On Tue, Jun 20

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-21 Thread Alex Bennée
Peter Maydell writes: > On 20 June 2017 at 12:02, Lluís Vilanova wrote: >> Jayanto Minocha writes: >>> But that is only used to instrument the cpu_ld/cpu_st macros, which is only >>> called in the case of a tlb miss. >> >>> I've been going over the archives, and it looks like I need to instrume

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-20 Thread Jayanto Minocha
Lluis, My modifications were almost the same as those done by Emilio. There were no memory trace events in the trace file. -J On Tue, Jun 20, 2017 at 10:20 AM, Emilio G. Cota wrote: > On Tue, Jun 20, 2017 at 14:02:02 +0300, Lluís Vilanova wrote: > > Jayanto Minocha writes: > > > > > Hi, > > >

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-20 Thread Emilio G. Cota
On Tue, Jun 20, 2017 at 14:02:02 +0300, Lluís Vilanova wrote: > Jayanto Minocha writes: > > > Hi, > > I think there have been a few threads on the mailing list regarding tracing > > guest virtual addresses for load and store instructions, but I have been > > unable to get it to work. I am trying t

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-20 Thread Peter Maydell
On 20 June 2017 at 12:02, Lluís Vilanova wrote: > Jayanto Minocha writes: >> But that is only used to instrument the cpu_ld/cpu_st macros, which is only >> called in the case of a tlb miss. > >> I've been going over the archives, and it looks like I need to instrument >> tcg_out_tlb_load. Am I on

Re: [Qemu-devel] Tracing guest virtual addresses

2017-06-20 Thread Lluís Vilanova
Jayanto Minocha writes: > Hi, > I think there have been a few threads on the mailing list regarding tracing > guest virtual addresses for load and store instructions, but I have been > unable to get it to work. I am trying this for an AArch64 machine, and am > using the softmmu. > The tracing inf

[Qemu-devel] Tracing guest virtual addresses

2017-06-19 Thread Jayanto Minocha
Hi, I think there have been a few threads on the mailing list regarding tracing guest virtual addresses for load and store instructions, but I have been unable to get it to work. I am trying this for an AArch64 machine, and am using the softmmu. The tracing infrastructure provides the following e