From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755254AbbFSSAl (ORCPT ); Fri, 19 Jun 2015 14:00:41 -0400 Received: from terminus.zytor.com ([198.137.202.10]:49222 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755182AbbFSSAg (ORCPT ); Fri, 19 Jun 2015 14:00:36 -0400 Date: Fri, 19 Jun 2015 10:59:47 -0700 From: tip-bot for Srikar Dronamraju Message-ID: Cc: peterz@infradead.org, srikar@linux.vnet.ibm.com, hpa@zytor.com, tglx@linutronix.de, bp@alien8.de, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, mingo@kernel.org, akpm@linux-foundation.org Reply-To: mingo@kernel.org, akpm@linux-foundation.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, bp@alien8.de, hpa@zytor.com, srikar@linux.vnet.ibm.com, peterz@infradead.org In-Reply-To: <1433751041-11724-2-git-send-email-srikar@linux.vnet.ibm.com> References: <1433751041-11724-2-git-send-email-srikar@linux.vnet.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/debug: Properly format runnable tasks in / proc/sched_debug Git-Commit-ID: 33d6176eb12d1b0ae6d2f672b47367fd90726b91 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 33d6176eb12d1b0ae6d2f672b47367fd90726b91 Gitweb: http://git.kernel.org/tip/33d6176eb12d1b0ae6d2f672b47367fd90726b91 Author: Srikar Dronamraju AuthorDate: Mon, 8 Jun 2015 13:40:39 +0530 Committer: Ingo Molnar CommitDate: Fri, 19 Jun 2015 10:03:10 +0200 sched/debug: Properly format runnable tasks in /proc/sched_debug With !CONFIG_SCHEDSTATS, runnable tasks in /proc/sched_debug has too many columns than required. Fix this by printing appropriate columns. While at this, print sum_exec_runtime, since this information is available even in !CONFIG_SCHEDSTATS case. Signed-off-by: Srikar Dronamraju Signed-off-by: Peter Zijlstra (Intel) Cc: Andrew Morton Cc: Borislav Petkov Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1433751041-11724-2-git-send-email-srikar@linux.vnet.ibm.com Signed-off-by: Ingo Molnar --- kernel/sched/debug.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index a245c1f..59cb603 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -136,8 +136,10 @@ print_task(struct seq_file *m, struct rq *rq, struct task_struct *p) SPLIT_NS(p->se.sum_exec_runtime), SPLIT_NS(p->se.statistics.sum_sleep_runtime)); #else - SEQ_printf(m, "%15Ld %15Ld %15Ld.%06ld %15Ld.%06ld %15Ld.%06ld", - 0LL, 0LL, 0LL, 0L, 0LL, 0L, 0LL, 0L); + SEQ_printf(m, "%9Ld.%06ld %9Ld.%06ld %9Ld.%06ld", + 0LL, 0L, + SPLIT_NS(p->se.sum_exec_runtime), + 0LL, 0L); #endif #ifdef CONFIG_NUMA_BALANCING SEQ_printf(m, " %d", task_node(p)); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/