lkml.org 
[lkml]   [2010]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromYong Zhang <>
Subject[RFC PATCH 6/6] timer_stats: make output more readable
DateSun, 29 Aug 2010 23:05:09 +0800
From: Yong Zhang <yong.zhang@windriver.com>

When running timer_stats for a little long time, the output
will be not aligned anymore because the volume of sample count
and pid will expand.

Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@elte.hu>
---
kernel/time/timer_stats.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/time/timer_stats.c b/kernel/time/timer_stats.c
index 2f3b585..da85b3e 100644
--- a/kernel/time/timer_stats.c
+++ b/kernel/time/timer_stats.c
@@ -307,10 +307,10 @@ static int tstats_show(struct seq_file *m, void *v)
for (i = 0; i < nr_entries; i++) {
entry = entries + i;
if (entry->timer_flag & TIMER_STATS_FLAG_DEFERRABLE) {
- seq_printf(m, "%4luD, %5d %-16s ",
+ seq_printf(m, "%10luD, %10d %-16s ",
entry->count, entry->pid, entry->comm);
} else {
- seq_printf(m, " %4lu, %5d %-16s ",
+ seq_printf(m, " %10lu, %10d %-16s ",
entry->count, entry->pid, entry->comm);
}

--
1.7.0.4


\
 
 \ /
  Last update: 2010-08-29 17:09    [from the cache]
©2003-2010