Lines Matching refs:cpus

40 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus,  in perf_evlist__init()  argument
48 perf_evlist__set_maps(evlist, cpus, threads); in perf_evlist__init()
140 cpu_map__put(evlist->cpus); in perf_evlist__delete()
142 evlist->cpus = NULL; in perf_evlist__delete()
157 cpu_map__put(evsel->cpus); in __perf_evlist__propagate_maps()
158 evsel->cpus = cpu_map__get(evlist->cpus); in __perf_evlist__propagate_maps()
159 } else if (evsel->cpus != evsel->own_cpus) { in __perf_evlist__propagate_maps()
160 cpu_map__put(evsel->cpus); in __perf_evlist__propagate_maps()
161 evsel->cpus = cpu_map__get(evsel->own_cpus); in __perf_evlist__propagate_maps()
409 int nr_cpus = cpu_map__nr(evlist->cpus); in perf_evlist__enable_event_thread()
425 bool per_cpu_mmaps = !cpu_map__empty(evlist->cpus); in perf_evlist__enable_event_idx()
435 int nr_cpus = cpu_map__nr(evlist->cpus); in perf_evlist__alloc_pollfd()
563 if (evlist->cpus && cpu >= 0) in perf_evlist__set_sid_idx()
564 sid->cpu = evlist->cpus->map[cpu]; in perf_evlist__set_sid_idx()
731 evlist->nr_mmaps = cpu_map__nr(evlist->cpus); in perf_evlist__alloc_mmap()
732 if (cpu_map__empty(evlist->cpus)) in perf_evlist__alloc_mmap()
770 int evlist_cpu = cpu_map__cpu(evlist->cpus, cpu_idx); in perf_evlist__mmap_per_evsel()
797 cpu = cpu_map__idx(evsel->cpus, evlist_cpu); in perf_evlist__mmap_per_evsel()
846 int nr_cpus = cpu_map__nr(evlist->cpus); in perf_evlist__mmap_per_cpu()
1024 const struct cpu_map *cpus = evlist->cpus; in perf_evlist__mmap_ex() local
1051 perf_evsel__alloc_id(evsel, cpu_map__nr(cpus), threads->nr) < 0) in perf_evlist__mmap_ex()
1055 if (cpu_map__empty(cpus)) in perf_evlist__mmap_ex()
1069 struct cpu_map *cpus; in perf_evlist__create_maps() local
1097 cpus = cpu_map__dummy_new(); in perf_evlist__create_maps()
1099 cpus = cpu_map__new(target->cpu_list); in perf_evlist__create_maps()
1101 if (!cpus) in perf_evlist__create_maps()
1106 perf_evlist__set_maps(evlist, cpus, threads); in perf_evlist__create_maps()
1115 void perf_evlist__set_maps(struct perf_evlist *evlist, struct cpu_map *cpus, in perf_evlist__set_maps() argument
1125 if (cpus != evlist->cpus) { in perf_evlist__set_maps()
1126 cpu_map__put(evlist->cpus); in perf_evlist__set_maps()
1127 evlist->cpus = cpu_map__get(cpus); in perf_evlist__set_maps()
1369 struct cpu_map *cpus; in perf_evlist__create_syswide_maps() local
1382 cpus = cpu_map__new(NULL); in perf_evlist__create_syswide_maps()
1383 if (!cpus) in perf_evlist__create_syswide_maps()
1390 perf_evlist__set_maps(evlist, cpus, threads); in perf_evlist__create_syswide_maps()
1394 cpu_map__put(cpus); in perf_evlist__create_syswide_maps()
1407 if (evlist->threads == NULL && evlist->cpus == NULL) { in perf_evlist__open()
1416 err = perf_evsel__open(evsel, evsel->cpus, evsel->threads); in perf_evlist__open()