diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-04-27 20:57:53 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-04-27 11:48:55 -0400 |
commit | 9ceb1c3d1fe15c2f9b55eaa8978019ef0e0a06ac (patch) | |
tree | 89c24419ef9a18d7b523bbdc6c7f9dd57c3e221f /tools | |
parent | c6264deff7ea6125492b442edad885e5429679af (diff) |
perf stat: Fix printout vertical alignment
Before:
|
| Performance counter stats for '/home/mingo/hackbench 20' (5 runs):
|
| 71,321,607 instructions:u # 0.42 insns per cycle ( +- 0.00% )
| 168,040,009 cycles:u # 0.000 GHz ( +- 0.81% )
|
| 1.468002368 seconds time elapsed ( +- 1.33% )
|
After:
|
| Performance counter stats for '/home/mingo/hackbench 20' (5 runs):
|
| 71,321,607 instructions:u # 0.42 insns per cycle ( +- 0.00% )
| 168,040,009 cycles:u # 0.000 GHz ( +- 0.81% )
|
| 1.468002368 seconds time elapsed ( +- 1.33% )
|
The last column (stddev noise) is properly aligned, vertically.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/n/tip-7y40wib8n1eqio7hjpn0dsrm@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 6959fdecb203..003caa857a44 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -575,7 +575,7 @@ static void abs_printout(int cpu, struct perf_evsel *evsel, double avg) | |||
575 | if (total) | 575 | if (total) |
576 | ratio = avg / total; | 576 | ratio = avg / total; |
577 | 577 | ||
578 | fprintf(stderr, " # %4.2f insns per cycle", ratio); | 578 | fprintf(stderr, " # %4.2f insns per cycle ", ratio); |
579 | 579 | ||
580 | total = avg_stats(&runtime_stalled_cycles_stats[cpu]); | 580 | total = avg_stats(&runtime_stalled_cycles_stats[cpu]); |
581 | 581 | ||