diff options
author | Andi Kleen <ak@linux.intel.com> | 2016-02-17 14:44:00 -0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-02-19 19:12:45 -0300 |
commit | b002f3bbd321993c1a6d56b86544065420156ab9 (patch) | |
tree | d53715be7c50ddaf3f3df1a363736ab03b25f642 /tools/perf/builtin-stat.c | |
parent | 5243ba76a585a6481c4d7b931e7e3d98900cbdbe (diff) | |
download | op-kernel-dev-b002f3bbd321993c1a6d56b86544065420156ab9.zip op-kernel-dev-b002f3bbd321993c1a6d56b86544065420156ab9.tar.gz |
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>
Diffstat (limited to 'tools/perf/builtin-stat.c')
-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 15e4fcf..86289df 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -860,7 +860,7 @@ static void printout(int id, int nr, struct perf_evsel *counter, double uval, nl = new_line_std; - if (run == 0 || ena == 0) { + if (run == 0 || ena == 0 || counter->counts->scaled == -1) { aggr_printout(counter, id, nr); fprintf(stat_config.output, "%*s%s", |