perf stat: Handled scaled == -1 case for counters
authorAndi Kleen <ak@linux.intel.com>
Wed, 17 Feb 2016 22:44:00 +0000 (14:44 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 19 Feb 2016 22:12:45 +0000 (19:12 -0300)
commitb002f3bbd321993c1a6d56b86544065420156ab9
treed53715be7c50ddaf3f3df1a363736ab03b25f642
parent5243ba76a585a6481c4d7b931e7e3d98900cbdbe
perf stat: Handled scaled == -1 case for counters

Arnaldo pointed out that the earlier cb110f471025 ("perf stat: Move
noise/running printing into printout") change changed behavior for not
counted counters. This patch fixes it again.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Fixes: cb110f471025 ("perf stat: Move noise/running printing into printout")
Link: http://lkml.kernel.org/r/1455749045-18098-2-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c