summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2017-09-22 12:37:28 -0400
committerIngo Molnar <mingo@kernel.org>2017-09-29 05:02:57 -0400
commit8ef9925b02c23e3838d5e593c5cf37984141150f (patch)
tree56dd45d5d85ba9aa3dd1cfa9bb9235db97d4b605 /fs
parent5d68cc95fb24b2f58060cc5340dd7402a11f054e (diff)
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/array.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index a120a4549d48..77a8eacbe032 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -128,9 +128,10 @@ static const char * const task_state_array[] = {
128 "t (tracing stop)", /* 0x08 */ 128 "t (tracing stop)", /* 0x08 */
129 "X (dead)", /* 0x10 */ 129 "X (dead)", /* 0x10 */
130 "Z (zombie)", /* 0x20 */ 130 "Z (zombie)", /* 0x20 */
131 "P (parked)", /* 0x40 */
131 132
132 /* states beyond TASK_REPORT: */ 133 /* states beyond TASK_REPORT: */
133 "I (idle)", /* 0x40 */ 134 "I (idle)", /* 0x80 */
134}; 135};
135 136
136static inline const char *get_task_state(struct task_struct *tsk) 137static inline const char *get_task_state(struct task_struct *tsk)