aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/evlist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c
index 30328623cae6..183b199b0d09 100644
--- a/tools/perf/util/evlist.c
+++ b/tools/perf/util/evlist.c
@@ -609,8 +609,9 @@ int perf_evlist__create_maps(struct perf_evlist *evlist,
609 if (evlist->threads == NULL) 609 if (evlist->threads == NULL)
610 return -1; 610 return -1;
611 611
612 if (target->uid != UINT_MAX || 612 if (target->uid != UINT_MAX || target->tid)
613 (target->cpu_list == NULL && target->tid)) 613 evlist->cpus = cpu_map__dummy_new();
614 else if (!target->system_wide && target->cpu_list == NULL)
614 evlist->cpus = cpu_map__dummy_new(); 615 evlist->cpus = cpu_map__dummy_new();
615 else 616 else
616 evlist->cpus = cpu_map__new(target->cpu_list); 617 evlist->cpus = cpu_map__new(target->cpu_list);