Skip to content

Commit 96e74eb

Browse files
Valentin SchneiderIngo Molnar
authored andcommitted
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 <[email protected]> Signed-off-by: Valentin Schneider <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 9e3bf94 commit 96e74eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

kernel/sched/debug.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,12 @@ void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns,
946946
P(se.avg.last_update_time);
947947
P(se.avg.util_est.ewma);
948948
P(se.avg.util_est.enqueued);
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));
949955
#endif
950956
P(policy);
951957
P(prio);

0 commit comments

Comments
 (0)