sched/debug: Add explicit TASK_PARKED printing
authorPeter Zijlstra <peterz@infradead.org>
Fri, 22 Sep 2017 16:37:28 +0000 (18:37 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 29 Sep 2017 09:02:57 +0000 (11:02 +0200)
commit8ef9925b02c23e3838d5e593c5cf37984141150f
tree56dd45d5d85ba9aa3dd1cfa9bb9235db97d4b605
parent5d68cc95fb24b2f58060cc5340dd7402a11f054e
sched/debug: Add explicit TASK_PARKED printing

Currently TASK_PARKED is masqueraded as TASK_INTERRUPTIBLE, give it
its own print state because it will not in fact get woken by regular
wakeups and is a long-term state.

This requires moving TASK_PARKED into the TASK_REPORT mask, and since
that latter needs to be a contiguous bitmask, we need to shuffle the
bits around a bit.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
fs/proc/array.c
include/linux/sched.h
include/trace/events/sched.h