sched/debug: Provide slice length for fair tasks

Since commit:

857b158dc5e8 ("sched/eevdf: Use sched_attr::sched_runtime to set request/slice suggestion")

... we have the userspace per-task tunable slice length, which is
a key parameter that is otherwise difficult to obtain, so provide
it in /proc/$PID/sched.

[ mingo: Clarified the changelog. ]

Signed-off-by: Christian Loehle <christian.loehle@arm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/453349b1-1637-42f5-a7b2-2385392b5956@arm.com

authored by Christian Loehle and committed by Ingo Molnar 9065ce69 3429dd57

+2
+2
kernel/sched/debug.c
··· 1265 if (task_has_dl_policy(p)) { 1266 P(dl.runtime); 1267 P(dl.deadline); 1268 } 1269 #ifdef CONFIG_SCHED_CLASS_EXT 1270 __PS("ext.enabled", task_on_scx(p));
··· 1265 if (task_has_dl_policy(p)) { 1266 P(dl.runtime); 1267 P(dl.deadline); 1268 + } else if (fair_policy(p->policy)) { 1269 + P(se.slice); 1270 } 1271 #ifdef CONFIG_SCHED_CLASS_EXT 1272 __PS("ext.enabled", task_on_scx(p));