linux_dsm_epyc7002/tools/lib/perf
Jiri Olsa cb71f7d43e libperf: Setup initial evlist::all_cpus value
Jann Horn reported crash in perf ftrace because evlist::all_cpus isn't
initialized if there's evlist without events, which is the case for perf
ftrace.

Adding initial initialization of evlist::all_cpus from given cpus,
regardless of events in the evlist.

Fixes: 7736627b86 ("perf stat: Use affinity for closing file descriptors")
Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Andi Kleen <ak@linux.intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20200110151537.153012-1-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2020-01-14 12:02:19 -03:00
..
Documentation libperf: Add man pages 2020-01-06 11:46:09 -03:00
include libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
tests libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
Build libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
core.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
cpumap.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
evlist.c libperf: Setup initial evlist::all_cpus value 2020-01-14 12:02:19 -03:00
evsel.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
internal.h libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
lib.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
libperf.map libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
libperf.pc.template libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
Makefile libperf: Add man pages 2020-01-06 11:46:09 -03:00
mmap.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
threadmap.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
xyarray.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00