sched/debug: Output SD flag names rather than their values
authorValentin Schneider <valentin.schneider@arm.com>
Mon, 17 Aug 2020 11:29:52 +0000 (12:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Aug 2020 08:49:48 +0000 (10:49 +0200)
commit5b9f8ff7b320a34af3dbcf04edb40d9b04f22f4a
treeb707215717d743c5fcd216cf7f260bc61eabce6e
parent65c5e253168dbbb52c20026b0c5b7a2f344b9197
sched/debug: Output SD flag names rather than their values

Decoding the output of /proc/sys/kernel/sched_domain/cpu*/domain*/flags has
always been somewhat annoying, as one needs to go fetch the bit -> name
mapping from the source code itself. This encoding can be saved in a script
somewhere, but that isn't safe from flags being added, removed or even
shuffled around.

What matters for debugging purposes is to get *which* flags are set in a
given domain, their associated value is pretty much meaningless.

Make the sd flags debug file output flag names.

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: https://lore.kernel.org/r/20200817113003.20802-7-valentin.schneider@arm.com
kernel/sched/debug.c