aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xarray.c
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2019-06-27 00:33:52 +0000
committerThomas Gleixner <[email protected]>2019-06-27 22:11:20 +0000
commit83f44ae0f8afcc9da659799db8693f74847e66b3 (patch)
tree97dbd7bf501484ccf72a747381e1b32c1c31e172 /lib/xarray.c
parentx86/speculation: Allow guests to use SSBD even if host does not (diff)
downloadkernel-83f44ae0f8afcc9da659799db8693f74847e66b3.tar.gz
kernel-83f44ae0f8afcc9da659799db8693f74847e66b3.zip
perf/x86: Always store regs->ip in perf_callchain_kernel()
The stacktrace_map_raw_tp BPF selftest is failing because the RIP saved by perf_arch_fetch_caller_regs() isn't getting saved by perf_callchain_kernel(). This was broken by the following commit: d15d356887e7 ("perf/x86: Make perf callchains work without CONFIG_FRAME_POINTER") With that change, when starting with non-HW regs, the unwinder starts with the current stack frame and unwinds until it passes up the frame which called perf_arch_fetch_caller_regs(). So regs->ip needs to be saved deliberately. Fixes: d15d356887e7 ("perf/x86: Make perf callchains work without CONFIG_FRAME_POINTER") Signed-off-by: Song Liu <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Cc: Kairui Song <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/3975a298fa52b506fea32666d8ff6a13467eee6d.1561595111.git.jpoimboe@redhat.com
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions