aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/process_32.c
diff options
context:
space:
mode:
authorQi Zheng <[email protected]>2021-09-29 15:02:17 -0700
committerPeter Zijlstra <[email protected]>2021-10-15 11:25:14 +0200
commitbc9bbb81730ea667c31c5b284f95ee312bab466f (patch)
treef9f4a5d7a04d22d2b7bb4d0fa4d9d0301b436497 /arch/sparc/kernel/process_32.c
parent4e046156792c26bef8a4e30be711777fc8578257 (diff)
x86: Fix get_wchan() to support the ORC unwinder
Currently, the kernel CONFIG_UNWINDER_ORC option is enabled by default on x86, but the implementation of get_wchan() is still based on the frame pointer unwinder, so the /proc/<pid>/wchan usually returned 0 regardless of whether the task <pid> is running. Reimplement get_wchan() by calling stack_trace_save_tsk(), which is adapted to the ORC and frame pointer unwinders. Fixes: ee9f8fce9964 ("x86/unwind: Add the ORC unwinder") Signed-off-by: Qi Zheng <[email protected]> Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'arch/sparc/kernel/process_32.c')
0 files changed, 0 insertions, 0 deletions