Skip to content

Commit b37ef20

Browse files
cloehleopsiff
authored andcommitted
sched/debug: Provide slice length for fair tasks
[ Upstream commit 9065ce6 ] Since commit: 857b158 ("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 Signed-off-by: Sasha Levin <sashal@kernel.org> (cherry picked from commit 6c8b1ef)
1 parent d6c770c commit b37ef20

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kernel/sched/debug.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,8 @@ void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns,
10881088
if (task_has_dl_policy(p)) {
10891089
P(dl.runtime);
10901090
P(dl.deadline);
1091+
} else if (fair_policy(p->policy)) {
1092+
P(se.slice);
10911093
}
10921094
#undef PN_SCHEDSTAT
10931095
#undef P_SCHEDSTAT

0 commit comments

Comments
 (0)