arm64: stacktrace: Factor out unwind_next_common()
authorKalesh Singh <kaleshsingh@google.com>
Tue, 26 Jul 2022 07:37:36 +0000 (00:37 -0700)
committerMarc Zyngier <maz@kernel.org>
Tue, 26 Jul 2022 09:48:20 +0000 (10:48 +0100)
commitbe63c647fd28d25484257f5f36a008db7d99991d
treee2169656f730cc09b232556f6edd4aa0db22df75
parent15a59f19a015185bff90a68f601caec151dea4b4
arm64: stacktrace: Factor out unwind_next_common()

Move common unwind_next logic to stacktrace/common.h. This allows
reusing the code in the implementation the nVHE hypervisor stack
unwinder, later in this series.

Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Tested-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220726073750.3219117-4-kaleshsingh@google.com
arch/arm64/include/asm/stacktrace/common.h
arch/arm64/kernel/stacktrace.c