Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757998AbcJXXdQ (ORCPT ); Mon, 24 Oct 2016 19:33:16 -0400 Received: from ms01.sssup.it ([193.205.80.99]:55196 "EHLO sssup.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757959AbcJXXdK (ORCPT ); Mon, 24 Oct 2016 19:33:10 -0400 From: Tommaso Cucinotta To: Luca Abeni , Juri Lelli , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-dl@retis.sssup.it, Tommaso Cucinotta , Daniel Bistrot de Oliveira , Tommaso Cucinotta Subject: [RFC PATCH] sched/deadline: show leftover runtime and abs deadline in /proc/*/sched Date: Tue, 25 Oct 2016 00:32:54 +0200 Message-Id: <1477348374-8248-2-git-send-email-tommaso.cucinotta@sssup.it> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477348374-8248-1-git-send-email-tommaso.cucinotta@sssup.it> References: <1477348374-8248-1-git-send-email-tommaso.cucinotta@sssup.it> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 508 Lines: 23 From: Tommaso Cucinotta --- 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); + } #undef PN_SCHEDSTAT #undef PN #undef __PN -- 2.7.4