summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorQi Zheng <zhengqi.arch@bytedance.com>2021-09-30 00:02:17 +0200
committerPeter Zijlstra <peterz@infradead.org>2021-10-15 11:25:14 +0200
commitbc9bbb81730ea667c31c5b284f95ee312bab466f (patch)
treef9f4a5d7a04d22d2b7bb4d0fa4d9d0301b436497 /arch/nios2
parentproc: Use task_is_running() for wchan in /proc/$pid/stat (diff)
downloadlinux-bc9bbb81730ea667c31c5b284f95ee312bab466f.tar.xz
linux-bc9bbb81730ea667c31c5b284f95ee312bab466f.zip
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 <zhengqi.arch@bytedance.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20211008111626.271115116@infradead.org
Diffstat (limited to 'arch/nios2')
0 files changed, 0 insertions, 0 deletions