[PATCH 0/2] fixed dump_backtrace() when task running on another cpu

From: Wang Qing
Date: Mon Apr 13 2020 - 08:05:14 EST


We cannot get FP and PC when the task is running on another CPU,
task->thread.cpu_context is the last time the task was switched out,
it's better to give a reminder than to provide wrong information.

We have no interface whether the task is running,
so we need to add an interface and distinguish CONFIG_SMP.

Wang Qing (2):
[V2 1/2]sched:add task_running_oncpu
[V2 2/2]ARM64:fixed dump_backtrace() when task running on another cpu

arch/arm64/kernel/traps.c | 7 +++++++
include/linux/sched.h | 10 ++++++++++
2 files changed, 17 insertions(+)

--
2.7.4