perf evsel: Add own_cpus member
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 8 Sep 2015 07:58:55 +0000 (10:58 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 15 Sep 2015 13:41:13 +0000 (10:41 -0300)
commitfce4d296b405b03fba033a55017348bf55b10db6
tree9ccdcac50fc2182774fd5d6335eb40e6f18b4219
parentb278c364b35ae940b05f6a9edf8061fc886cd09e
perf evsel: Add own_cpus member

perf_evlist__propagate_maps() cannot easily tell if an evsel has its own
cpu map.  To make that simpler, keep a copy of the PMU cpu map and
adjust the propagation logic accordingly.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@intel.com>
Link: http://lkml.kernel.org/r/1441699142-18905-8-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h
tools/perf/util/parse-events.c