perf tools: Allow system-wide events to keep their own CPUs
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 24 May 2022 07:54:35 +0000 (10:54 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 May 2022 15:36:57 +0000 (12:36 -0300)
commit298613b8e3f68a1aef2370cd6a9dad462b6c0457
tree4affcbf1d3bb9f0d72f84f22a41d69233c026e37
parentf5fb6d4efe15a2f0d2c0c175c3827ac594023996
perf tools: Allow system-wide events to keep their own CPUs

Currently, user_requested_cpus supplants system-wide CPUs when the evlist
has_user_cpus. Change that so that system-wide events retain their own
CPUs and they are added to all_cpus.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Link: https://lore.kernel.org/r/20220524075436.29144-15-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/evlist.c