Re: [PATCH v2 0/3] perf: Fixes for callchain ip handling on powerpc

From: Arnaldo Carvalho de Melo
Date: Wed Apr 18 2018 - 13:53:53 EST

Em Wed, Apr 18, 2018 at 04:28:57PM +0530, Sandipan Das escreveu:
> The first patch fixes the callchain ip filtering mechanism for powerpc
> from skipping entries in case the LR value is still valid and yet to
> be written to the stack frame. This was previously posted as an RFC
> here:
> The second patch fixes a crash caused by attempting to access an empty
> callchain.
> The third patch fixes a shell test which used to fail on powerpc as
> the back trace from perf output did not match the expected pattern.
> Also, because of the issue described in the first patch, some entries
> from the callchain were incorrectly skipped. So, this has also been
> readjusted to work with the fix in the first patch.

> v2:
> - Consider case when return address is in R0 as pointed out by Ravi.
> - Add another patch to fix crash when callchain is empty.

Ravi, can you please take a look at these? The other two patches too,

- Arnaldo