Lines Matching full:cpus
67 struct perf_cpu_map *cpus; in perf_probe_api() local
70 cpus = perf_cpu_map__new(NULL); in perf_probe_api()
71 if (!cpus) in perf_probe_api()
73 cpu = cpus->map[0]; in perf_probe_api()
74 perf_cpu_map__put(cpus); in perf_probe_api()
122 struct perf_cpu_map *cpus; in perf_can_record_cpu_wide() local
125 cpus = perf_cpu_map__new(NULL); in perf_can_record_cpu_wide()
126 if (!cpus) in perf_can_record_cpu_wide()
128 cpu = cpus->map[0]; in perf_can_record_cpu_wide()
129 perf_cpu_map__put(cpus); in perf_can_record_cpu_wide()
154 if (evlist->core.cpus->map[0] < 0) in perf_evlist__config()
281 if (!evlist || perf_cpu_map__empty(evlist->core.cpus)) { in perf_evlist__can_select_event()
282 struct perf_cpu_map *cpus = perf_cpu_map__new(NULL); in perf_evlist__can_select_event() local
284 cpu = cpus ? cpus->map[0] : 0; in perf_evlist__can_select_event()
285 perf_cpu_map__put(cpus); in perf_evlist__can_select_event()
287 cpu = evlist->core.cpus->map[0]; in perf_evlist__can_select_event()