Re: [PATCH V2 1/9] perf tools: Fix symbol annotation for relocated kernel

2014-01-30 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 30, 2014 at 03:15:30PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Jan 30, 2014 at 03:12:32PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Thu, Jan 30, 2014 at 03:08:23PM -0300, Arnaldo Carvalho de Melo escreveu: > > > Getting segfaults with: > > > > > [acme@ssdandy linux]

Re: [PATCH V2 1/9] perf tools: Fix symbol annotation for relocated kernel

2014-01-30 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 30, 2014 at 03:12:32PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Jan 30, 2014 at 03:08:23PM -0300, Arnaldo Carvalho de Melo escreveu: > > Getting segfaults with: > > > [acme@ssdandy linux]$ git log --oneline | head -10 > > c059c953531f perf tests: vmlinux-kallsyms test does

Re: [PATCH V2 1/9] perf tools: Fix symbol annotation for relocated kernel

2014-01-30 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 30, 2014 at 03:08:23PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Jan 30, 2014 at 10:20:36AM +0100, Ingo Molnar escreveu: > > I'd suggest the whole fix series if perf/urgent material. > Getting segfaults with: > [acme@ssdandy linux]$ git log --oneline | head -10 > c059c9535

Re: [PATCH V2 1/9] perf tools: Fix symbol annotation for relocated kernel

2014-01-30 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 30, 2014 at 10:20:36AM +0100, Ingo Molnar escreveu: > Ok, cool, thanks! > > I'd suggest the whole fix series if perf/urgent material. Getting segfaults with: [acme@ssdandy linux]$ git log --oneline | head -10 c059c953531f perf tests: vmlinux-kallsyms test does not need to set up ref

Re: [PATCH V2 1/9] perf tools: Fix symbol annotation for relocated kernel

2014-01-30 Thread Ingo Molnar
* Adrian Hunter wrote: > On 30/01/14 10:59, Ingo Molnar wrote: > > > > * Adrian Hunter wrote: > > > >> On 29/01/14 20:57, Arnaldo Carvalho de Melo wrote: > >>> Em Wed, Jan 29, 2014 at 04:14:36PM +0200, Adrian Hunter escreveu: > Kernel maps map memory addresses to file offsets. > For

Re: [PATCH V2 1/9] perf tools: Fix symbol annotation for relocated kernel

2014-01-30 Thread Adrian Hunter
On 30/01/14 10:59, Ingo Molnar wrote: > > * Adrian Hunter wrote: > >> On 29/01/14 20:57, Arnaldo Carvalho de Melo wrote: >>> Em Wed, Jan 29, 2014 at 04:14:36PM +0200, Adrian Hunter escreveu: Kernel maps map memory addresses to file offsets. For symbol annotation, objdump needs the obje

Re: [PATCH V2 1/9] perf tools: Fix symbol annotation for relocated kernel

2014-01-30 Thread Ingo Molnar
* Adrian Hunter wrote: > On 29/01/14 20:57, Arnaldo Carvalho de Melo wrote: > > Em Wed, Jan 29, 2014 at 04:14:36PM +0200, Adrian Hunter escreveu: > >> Kernel maps map memory addresses to file offsets. > >> For symbol annotation, objdump needs the object VMA > >> addresses. For an unrelocated ke

Re: [PATCH V2 1/9] perf tools: Fix symbol annotation for relocated kernel

2014-01-29 Thread Adrian Hunter
On 29/01/14 20:57, Arnaldo Carvalho de Melo wrote: > Em Wed, Jan 29, 2014 at 04:14:36PM +0200, Adrian Hunter escreveu: >> Kernel maps map memory addresses to file offsets. >> For symbol annotation, objdump needs the object VMA >> addresses. For an unrelocated kernel, that is the >> same as the mem

Re: [PATCH V2 1/9] perf tools: Fix symbol annotation for relocated kernel

2014-01-29 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 29, 2014 at 04:14:36PM +0200, Adrian Hunter escreveu: > Kernel maps map memory addresses to file offsets. > For symbol annotation, objdump needs the object VMA > addresses. For an unrelocated kernel, that is the > same as the memory address. > > The addresses passed to objdump for sym

[PATCH V2 1/9] perf tools: Fix symbol annotation for relocated kernel

2014-01-29 Thread Adrian Hunter
Kernel maps map memory addresses to file offsets. For symbol annotation, objdump needs the object VMA addresses. For an unrelocated kernel, that is the same as the memory address. The addresses passed to objdump for symbol annotation did not take into account kernel relocation. This patch fixes