powerpc/perf: Consolidate perf_callchain_user_[64|32]()
authorMichal Suchanek <msuchanek@suse.de>
Mon, 6 Apr 2020 21:00:22 +0000 (23:00 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 30 Jul 2020 12:53:49 +0000 (22:53 +1000)
commitd3a133aa0e029e0bbb67170f5f18c8fcd4701370
treebed697e7bd70061e09d75c9ec86e7bf5961dfd27
parenta0ff72f9f5a780341e7ff5e9ba50a0dad5fa1980
powerpc/perf: Consolidate perf_callchain_user_[64|32]()

perf_callchain_user_64() and perf_callchain_user_32() are nearly
identical. Consolidate into one function with thin wrappers.

Suggested-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
[mpe: Adapt to copy_from_user_nofault(), minor formatting]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200406210022.32265-1-msuchanek@suse.de
arch/powerpc/perf/callchain.h
arch/powerpc/perf/callchain_32.c
arch/powerpc/perf/callchain_64.c