aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/metricgroup.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2019-06-24 12:37:08 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-07-01 22:50:41 -0300
commit145c407c808352acd625be793396fd4f33c794f8 (patch)
tree1aead735a2ceaadbe5923b4d332e000c2a151930 /tools/perf/util/metricgroup.c
parenttools lib: Move argv_{split,free} from tools/perf/util/ (diff)
downloadlinux-dev-145c407c808352acd625be793396fd4f33c794f8.tar.xz
linux-dev-145c407c808352acd625be793396fd4f33c794f8.zip
perf stat: Make metric event lookup more robust
After setting up metric groups through the event parser, the metricgroup code looks them up again in the event list. Make sure we only look up events that haven't been used by some other metric. The data structures currently cannot handle more than one metric per event. This avoids problems with multiple events partially overlapping. Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Link: http://lkml.kernel.org/r/20190624193711.35241-2-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/metricgroup.c')
0 files changed, 0 insertions, 0 deletions