perf stat: Fix multi-run stats
authorIngo Molnar <mingo@elte.hu>
Sat, 27 Jun 2009 04:24:32 +0000 (06:24 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 27 Jun 2009 04:34:37 +0000 (06:34 +0200)
commit566747e6298289c5cb02d4939cb3abf1c4fe7e5a
tree5762ec2d18b2ec3d7c727ac683d95cb3ca54dc21
parent0cfb7a13b8e4e0afd4b856156ab16a182de7505b
perf stat: Fix multi-run stats

In multi-run (-r/--repeat) printouts, print out the noise of
the wall-clock average as well.

Also, fix a bug in printing out scaled counters: if it was not
scaled then we should not update the average with -1.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
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>
tools/perf/builtin-stat.c