mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [V3 0/3] Fixed dump_backtrace() when task running on another cpu
@ 2020-04-14 12:36 Wang Qing
  2020-04-14 12:36 ` [V3 1/3] ARM64:fixed " Wang Qing
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wang Qing @ 2020-04-14 12:36 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Ingo Molnar, Peter Zijlstra,
	Juri Lelli, Vincent Guittot, Dietmar Eggemann, Steven Rostedt,
	Ben Segall, Mel Gorman, James Morse, Mark Rutland,
	Eric W. Biederman, Thomas Gleixner, jinho lim, Wang Qing,
	Dave Martin, linux-arm-kernel, linux-kernel
  Cc: opensource.kernel

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
for example when Task blocked in spinlock/interrupt/busy loop.

The task_running() should be renamed to task_running_on_rq()
like the naming of task_running_on_cpu(), this is what it
originally mean.

Add task_running() no rq required.

V2:
- Add task_running_oncpu()
v3:
- Renamed task_running() to task_running_on_rq()
- Renamed task_running_oncpu() to task_running()

Wang Qing (3):
  ARM64:fixed dump_backtrace() when task running on another cpu
  sched:add task_running()
  sched:rename task_running() and to task_running_on_rq

 arch/arm64/kernel/traps.c |  7 +++++++
 include/linux/sched.h     | 10 ++++++++++
 kernel/sched/core.c       | 14 +++++++-------
 kernel/sched/deadline.c   |  6 +++---
 kernel/sched/fair.c       |  2 +-
 kernel/sched/rt.c         |  6 +++---
 kernel/sched/sched.h      |  2 +-
 7 files changed, 32 insertions(+), 15 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-04-14 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-14 12:36 [V3 0/3] Fixed dump_backtrace() when task running on another cpu Wang Qing
2020-04-14 12:36 ` [V3 1/3] ARM64:fixed " Wang Qing
2020-04-14 12:36 ` [V3 2/3] sched:add task_running() Wang Qing
2020-04-14 12:36 ` [V3 3/3] sched:rename task_running() and to task_running_on_rq Wang Qing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®