s390/stacktrace: Merge perf_callchain_user() and arch_stack_walk_user()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 29 Apr 2024 12:28:44 +0000 (14:28 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 14 May 2024 11:37:06 +0000 (13:37 +0200)
commitebd912ff9919a10609511383d94942362234c077
tree9a2855b26b7ec7cd60723dc3ac08fb511a58bf2d
parent185445c7c137822ad856aae91a41e199370cb534
s390/stacktrace: Merge perf_callchain_user() and arch_stack_walk_user()

The two functions perf_callchain_user() and arch_stack_walk_user() are
nearly identical. Reduce code duplication and add a common helper which can
be called by both functions.

Fixes: aa44433ac4ee ("s390: add USER_STACKTRACE support")
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/stacktrace.h
arch/s390/kernel/perf_event.c
arch/s390/kernel/stacktrace.c