Re: [RFC PATCH] sched/deadline: show leftover runtime and abs deadline in /proc/*/sched

From: Juri Lelli
Date: Tue Oct 25 2016 - 05:40:03 EST


Hi,

On 25/10/16 00:32, Tommaso Cucinotta wrote:
> From: Tommaso Cucinotta <tommaso@xxxxxxx>

You should probably commit from your sssup address?

Also changelog is missing. You can simply put here part of your cover
letter wordings.

>
> ---
> kernel/sched/debug.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
> index fa178b6..109adc0 100644
> --- a/kernel/sched/debug.c
> +++ b/kernel/sched/debug.c
> @@ -953,6 +953,10 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
> #endif
> P(policy);
> P(prio);
> + if (p->policy == SCHED_DEADLINE) {
> + P(dl.runtime);
> + P(dl.deadline);
> + }

For testing purposes looks ok to me.

Best,

- Juri