Re: [PATCH v3] arm64: Synchronise dump_backtrace() with perf callchain

From: Catalin Marinas
Date: Mon Oct 19 2015 - 14:02:24 EST


On Sat, Oct 17, 2015 at 02:28:11PM +0000, Jungseok Lee wrote:
> Note that this patch does not cover a case where MMU is disabled. The
> last stack frame of swapper, for example, has PC in a form of physical
> address. Unfortunately, a simple conversion using phys_to_virt() cannot
> cover all scenarios since PC is retrieved from LR - 4, not LR. It is
> a big tradeoff to change both head.S and unwind_frame() for only a few
> of symbols in *.S. Thus, this hunk does not take care of the case.

That's fine, I think we can cope with a physical address as the last
entry in the trace.

Patch queued for 4.4. Thanks.

--
Catalin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/