aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-06-29 15:50:54 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-29 15:50:54 -0400
commit210ad39fb7ef0bc0494483f517f42524f16bb2a7 (patch)
tree74ab5c078f03a1f4b7683cb4bd92c746a9e2e1a5
parent4078c444cf667f018c3fc7ebf141131a2b7c9480 (diff)
perf stat: Use percentages for scaling output
Peter expressed a strong preference for percentage based display of scaled values - so revert to that from the recently introduced multiplication-factor unit. Reported-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Jaswinder Singh Rajput <jaswinder@kernel.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--tools/perf/builtin-stat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index 3e5ea4e2e5fd..c5a290727a92 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -307,7 +307,8 @@ static void print_counter(int counter)
307 abs_printout(counter, count, noise); 307 abs_printout(counter, count, noise);
308 308
309 if (scaled) 309 if (scaled)
310 fprintf(stderr, " (%7.2fx scaled)", (double)count[1]/count[2]); 310 fprintf(stderr, " (scaled from %.2f%%)",
311 (double) count[2] / count[1] * 100);
311 312
312 fprintf(stderr, "\n"); 313 fprintf(stderr, "\n");
313} 314}