summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/dump-insn.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2023-06-16 09:32:10 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2023-06-16 15:15:43 +0200
commited4090a22c123b9b33368741253edddc6ff8d18f (patch)
tree11c748a6816975be3848a6b0b8f87cdd1c6a9345 /tools/perf/util/dump-insn.c
parentperf test: fix failing test cases on linux-next for s390 (diff)
downloadlinux-ed4090a22c123b9b33368741253edddc6ff8d18f.tar.xz
linux-ed4090a22c123b9b33368741253edddc6ff8d18f.zip
perf stat: Reset aggr stats for each run
When it runs multiple times with -r option, it missed to reset the aggregation counters and the values were added up. The aggregation count has the values to be printed in the end. It should reset the counters at the beginning of each run. But the current code does that only when -I/--interval-print option is given. Fixes: 91f85f98da7ab8c3 ("perf stat: Display event stats using aggr counts") Reported-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20230616073211.1057936-1-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/dump-insn.c')
0 files changed, 0 insertions, 0 deletions