libperf: Setup initial evlist::all_cpus value
[sfrench/cifs-2.6.git] / tools / lib / perf / evlist.c
index ae9e65aa249180cb30391edc802d37df3e238fb8..5b9f2ca50591dd2a5b5b79d24d4e4bee979c1d84 100644 (file)
@@ -164,6 +164,9 @@ void perf_evlist__set_maps(struct perf_evlist *evlist,
                evlist->threads = perf_thread_map__get(threads);
        }
 
+       if (!evlist->all_cpus && cpus)
+               evlist->all_cpus = perf_cpu_map__get(cpus);
+
        perf_evlist__propagate_maps(evlist);
 }