From: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
To: Ingo Molnar <mingo@kernel.org>, Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org,
Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Subject: [PATCH 1/3] sched:Properly format runnable tasks in /proc/sched_debug
Date: Mon, 8 Jun 2015 13:40:39 +0530 [thread overview]
Message-ID: <1433751041-11724-2-git-send-email-srikar@linux.vnet.ibm.com> (raw)
In-Reply-To: <1433751041-11724-1-git-send-email-srikar@linux.vnet.ibm.com>
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 <srikar@linux.vnet.ibm.com>
---
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));
--
1.8.3.1
next prev parent reply other threads:[~2015-06-08 8:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-08 8:10 [PATCH 0/3] : Fixes to make /proc/sched_debug better Srikar Dronamraju
2015-06-08 8:10 ` Srikar Dronamraju [this message]
2015-06-19 17:59 ` [tip:sched/core] sched/debug: Properly format runnable tasks in / proc/sched_debug tip-bot for Srikar Dronamraju
2015-06-08 8:10 ` [PATCH 2/3] sched:Replace vruntime with wait_sum in /proc/sched_debug Srikar Dronamraju
2015-06-19 18:00 ` [tip:sched/core] sched/debug: Replace vruntime with wait_sum in / proc/sched_debug tip-bot for Srikar Dronamraju
2015-06-08 8:10 ` [PATCH 3/3] sched:Add sum_sleep_runtime to /proc/<pid>/sched Srikar Dronamraju
2015-06-19 18:00 ` [tip:sched/core] sched/debug: Add sum_sleep_runtime to /proc/<pid >/sched tip-bot for Srikar Dronamraju
-- strict thread matches above, loose matches on Subject: below --
2015-05-28 10:26 [PATCH 0/3] : Fixes to make /proc/sched_debug better Srikar Dronamraju
2015-05-28 10:26 ` [PATCH 1/3] sched:Properly format runnable tasks in /proc/sched_debug Srikar Dronamraju
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1433751041-11724-2-git-send-email-srikar@linux.vnet.ibm.com \
--to=srikar@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome