Re: [RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-25 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 25, 2017 at 02:50:33PM +0530, Naveen N. Rao escreveu: > On 2017/10/25 08:28AM, Jiri Olsa wrote: > > On Tue, Oct 24, 2017 at 07:50:06PM +0530, Ravi Bangoria wrote: > > > Perf top is often crashing at very random locations on powerpc. > > > After investigating, I found the crash only happ

Re: [RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-25 Thread Jiri Olsa
On Tue, Oct 24, 2017 at 07:50:06PM +0530, Ravi Bangoria wrote: > Perf top is often crashing at very random locations on powerpc. > After investigating, I found the crash only happens when sample > is of zero length symbol. Powerpc kernel has many such symbols > which does not contain length details

Re: [RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-25 Thread Naveen N. Rao
On 2017/10/25 08:28AM, Jiri Olsa wrote: > On Tue, Oct 24, 2017 at 07:50:06PM +0530, Ravi Bangoria wrote: > > Perf top is often crashing at very random locations on powerpc. > > After investigating, I found the crash only happens when sample > > is of zero length symbol. Powerpc kernel has many such

Re: [RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-25 Thread Jiri Olsa
On Tue, Oct 24, 2017 at 07:50:06PM +0530, Ravi Bangoria wrote: > Perf top is often crashing at very random locations on powerpc. > After investigating, I found the crash only happens when sample > is of zero length symbol. Powerpc kernel has many such symbols > which does not contain length details

Re: [RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-24 Thread Namhyung Kim
On Tue, Oct 24, 2017 at 07:50:06PM +0530, Ravi Bangoria wrote: > Perf top is often crashing at very random locations on powerpc. > After investigating, I found the crash only happens when sample > is of zero length symbol. Powerpc kernel has many such symbols > which does not contain length details

[RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-24 Thread Ravi Bangoria
Perf top is often crashing at very random locations on powerpc. After investigating, I found the crash only happens when sample is of zero length symbol. Powerpc kernel has many such symbols which does not contain length details in vmlinux binary and thus start and end addresses of such symbols are