]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
sched/debug: Use symbolic names for task state constants
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 5 Sep 2018 09:36:36 +0000 (11:36 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:16:32 +0000 (13:16 +0100)
commit0d93c025e791b90d811b26782a7444036a666e5c
treeb624e4d8d0d26945401ee4995b909a87923c7616
parentc7f0c521f5c44979a9c273c4119b463dfab4789e
sched/debug: Use symbolic names for task state constants

BugLink: https://bugs.launchpad.net/bugs/1853915
[ Upstream commit ff28915fd31ccafc0d38e6f84b66df280ed9e86a ]

include/trace/events/sched.h includes <linux/sched.h> (via
<linux/sched/numa_balancing.h>) and so knows about the TASK_* constants
used to interpret .prev_state. So instead of duplicating the magic
numbers make use of the defined macros to ease understanding the
mapping from state bits to letters which isn't completely intuitive for
an outsider.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel@pengutronix.de
Link: http://lkml.kernel.org/r/20180905093636.24068-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/trace/events/sched.h