diff options
Diffstat (limited to 'tools/perf/util/evlist.c')
-rw-r--r-- | tools/perf/util/evlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 87889f325678..4ac5f5ae4ce9 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c | |||
@@ -611,6 +611,8 @@ int perf_evlist__create_maps(struct perf_evlist *evlist, | |||
611 | 611 | ||
612 | if (perf_target__has_task(target)) | 612 | if (perf_target__has_task(target)) |
613 | evlist->cpus = cpu_map__dummy_new(); | 613 | evlist->cpus = cpu_map__dummy_new(); |
614 | else if (!perf_target__has_cpu(target) && !target->uses_mmap) | ||
615 | evlist->cpus = cpu_map__dummy_new(); | ||
614 | else | 616 | else |
615 | evlist->cpus = cpu_map__new(target->cpu_list); | 617 | evlist->cpus = cpu_map__new(target->cpu_list); |
616 | 618 | ||