]> git.baikalelectronics.ru Git - kernel.git/commit
perf stat: Fix metrics with --no-merge
authorAndi Kleen <ak@linux.intel.com>
Mon, 24 Jun 2019 19:37:11 +0000 (12:37 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 2 Jul 2019 01:50:41 +0000 (22:50 -0300)
commitdee8aba92b4724267ae4538552e9fbfbb5f42078
treeff9314728cdd84e9bd6820208a0204feeb744287
parent383ca20c573fb10fb998197a24d686ebb193801c
perf stat: Fix metrics with --no-merge

Since Fixes: b5455e186a6b ("perf pmu: Display pmu name when printing
unmerged events in stat") using --no-merge adds the PMU name to the
evsel name.

This breaks the metric value lookup because the parser doesn't know
about this.

Remove the extra postfixes for the metric evaluation.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Agustin Vega-Frias <agustinv@codeaurora.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Fixes: b5455e186a6b ("perf pmu: Display pmu name when printing unmerged events in stat")
Link: http://lkml.kernel.org/r/20190624193711.35241-5-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/stat-shadow.c