]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Allow all_cpus to be a superset of user_requested_cpus
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 24 May 2022 07:54:30 +0000 (10:54 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 May 2022 15:36:57 +0000 (12:36 -0300)
commit7576f26ca706246341093da839d7c09976de430d
tree9feb5d0d61ede5fb5027817e5a007989fff2ea35
parent4788bef75c5314501bb066b2a32ad6f4b2eea06e
perf tools: Allow all_cpus to be a superset of user_requested_cpus

To support collection of system-wide events with user requested CPUs,
all_cpus must be a superset of user_requested_cpus.

In order to support all_cpus to be a superset of user_requested_cpus,
all_cpus must be used instead of user_requested_cpus when dealing with CPUs
of all events instead of CPUs of requested events.

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-10-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/evlist.c
tools/perf/builtin-record.c
tools/perf/util/auxtrace.c