mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
perf stat: Handled scaled == -1 case for counters
Arnaldo pointed out that the earliercb110f4710
("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:cb110f4710
("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>
This commit is contained in:
parent
5243ba76a5
commit
b002f3bbd3
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user