sched/debug: Add task uclamp values to SCHED_DEBUG procfs

Requested and effective uclamp values can be a bit tricky to decipher when
playing with cgroup hierarchies. Add them to a task's procfs when
SCHED_DEBUG is enabled.

Reviewed-by: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20200226124543.31986-4-valentin.schneider@arm.com

authored by Valentin Schneider and committed by Ingo Molnar 96e74ebf 9e3bf946

Changed files
+6
kernel
sched
+6
kernel/sched/debug.c
··· 947 947 P(se.avg.util_est.ewma); 948 948 P(se.avg.util_est.enqueued); 949 949 #endif 950 + #ifdef CONFIG_UCLAMP_TASK 951 + __PS("uclamp.min", p->uclamp[UCLAMP_MIN].value); 952 + __PS("uclamp.max", p->uclamp[UCLAMP_MAX].value); 953 + __PS("effective uclamp.min", uclamp_eff_value(p, UCLAMP_MIN)); 954 + __PS("effective uclamp.max", uclamp_eff_value(p, UCLAMP_MAX)); 955 + #endif 950 956 P(policy); 951 957 P(prio); 952 958 if (task_has_dl_policy(p)) {