sched/tracing: Fix trace_sched_switch task-state printing
authorPeter Zijlstra <peterz@infradead.org>
Fri, 22 Sep 2017 16:19:53 +0000 (18:19 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 29 Sep 2017 08:09:10 +0000 (10:09 +0200)
commitefb40f588b4370ffaeffafbd50f6ff213d954254
treeeb9bd7cbdbfeb486184a68ee36258cac029a92b2
parent65d5dc47fe8530e17e318722fb4df676536c2bfc
sched/tracing: Fix trace_sched_switch task-state printing

Convert trace_sched_switch to use the common task-state helpers and
fix the "X" and "Z" order, possibly they ended up in the wrong order
because TASK_REPORT has them in the wrong order too.

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>
include/linux/sched.h
include/trace/events/sched.h