Re: [PATCH v2] perf symbols: Fix annotation of objects with debuginfo files

2016-08-15 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 15, 2016 at 03:13:47PM +0800, Wangnan (F) escreveu: > > > On 2016/8/13 9:55, Anton Blanchard wrote: > > From: Anton Blanchard > > > > Commit 73cdf0c6ea9c ("perf symbols: Record text offset in dso > > to calculate objdump address") started storing the offset of > > the text section f

Re: [PATCH v2] perf symbols: Fix annotation of objects with debuginfo files

2016-08-15 Thread Naveen N. Rao
On 2016/08/15 03:13PM, Wang Nan wrote: > > > On 2016/8/13 9:55, Anton Blanchard wrote: > > From: Anton Blanchard > > > > Commit 73cdf0c6ea9c ("perf symbols: Record text offset in dso > > to calculate objdump address") started storing the offset of > > the text section for all DSOs: > > > >

Re: [PATCH v2] perf symbols: Fix annotation of objects with debuginfo files

2016-08-15 Thread Wangnan (F)
On 2016/8/13 9:55, Anton Blanchard wrote: From: Anton Blanchard Commit 73cdf0c6ea9c ("perf symbols: Record text offset in dso to calculate objdump address") started storing the offset of the text section for all DSOs: if (elf_section_by_name(elf, &ehdr, &tshdr, ".text", NULL))

Re: [PATCH v2] perf symbols: Fix annotation of objects with debuginfo files

2016-08-14 Thread Naveen N. Rao
On 2016/08/13 11:55AM, Anton Blanchard wrote: > From: Anton Blanchard > > Commit 73cdf0c6ea9c ("perf symbols: Record text offset in dso > to calculate objdump address") started storing the offset of > the text section for all DSOs: > >if (elf_section_by_name(elf, &ehdr, &tshdr, ".text",

[PATCH v2] perf symbols: Fix annotation of objects with debuginfo files

2016-08-12 Thread Anton Blanchard
From: Anton Blanchard Commit 73cdf0c6ea9c ("perf symbols: Record text offset in dso to calculate objdump address") started storing the offset of the text section for all DSOs: if (elf_section_by_name(elf, &ehdr, &tshdr, ".text", NULL)) dso->text_offset = tshdr.sh_addr - ts