OSDN Git Service

arm64: stacktrace: Convert to ARCH_STACKWALK
authorMark Brown <broonie@kernel.org>
Mon, 14 Sep 2020 15:34:09 +0000 (16:34 +0100)
committerWill Deacon <will@kernel.org>
Fri, 18 Sep 2020 13:24:16 +0000 (14:24 +0100)
commit5fc57df2f6fdc18b9f9273f98318ff7919968c2c
treef249c675fec00e8640654300a769c833eefe791c
parentbaa2cd417053cb674deb90ee66b88afea0517335
arm64: stacktrace: Convert to ARCH_STACKWALK

Historically architectures have had duplicated code in their stack trace
implementations for filtering what gets traced. In order to avoid this
duplication some generic code has been provided using a new interface
arch_stack_walk(), enabled by selecting ARCH_STACKWALK in Kconfig, which
factors all this out into the generic stack trace code. Convert arm64
to use this common infrastructure.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lore.kernel.org/r/20200914153409.25097-4-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/Kconfig
arch/arm64/kernel/stacktrace.c