Re: [PATCH] perf: unwind: fix segbase for libunwind.

2015-04-02 Thread Namhyung Kim
On Thu, Apr 02, 2015 at 01:19:24PM +0800, Wang Nan wrote: > Additional information: > > With following patch it seems to work: > > diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c > index 476268c..1177f02 100644 > --- a/tools/perf/util/symbol-elf.c > +++ b/tools/perf/util/

Re: [PATCH] perf: unwind: fix segbase for libunwind.

2015-04-01 Thread Wang Nan
On 2015/4/2 13:07, Wang Nan wrote: > On 2015/4/1 22:48, Ingo Molnar wrote: >> >> * Wang Nan wrote: >> >>> Perf passes incorrect segbase and table_data to libunwind when >>> map->pgoff != 0, causes unwind failure. This patch fixes this >>> problem. >>> >>> segbase is an absolute offset from the h

Re: [PATCH] perf: unwind: fix segbase for libunwind.

2015-04-01 Thread Wang Nan
On 2015/4/1 22:48, Ingo Molnar wrote: > > * Wang Nan wrote: > >> Perf passes incorrect segbase and table_data to libunwind when >> map->pgoff != 0, causes unwind failure. This patch fixes this >> problem. >> >> segbase is an absolute offset from the head of object file, directly >> read from

Re: [PATCH] perf: unwind: fix segbase for libunwind.

2015-04-01 Thread Ingo Molnar
* Wang Nan wrote: > Perf passes incorrect segbase and table_data to libunwind when > map->pgoff != 0, causes unwind failure. This patch fixes this > problem. > > segbase is an absolute offset from the head of object file, directly > read from ELF file. Original code computes corresponding vi