Lines Matching full:cpus
42 * We already have cpus for evsel (via PMU sysfs) so in __perf_evlist__propagate_maps()
46 perf_cpu_map__put(evsel->cpus); in __perf_evlist__propagate_maps()
47 evsel->cpus = perf_cpu_map__get(evlist->cpus); in __perf_evlist__propagate_maps()
48 } else if (!evsel->system_wide && perf_cpu_map__empty(evlist->cpus)) { in __perf_evlist__propagate_maps()
49 perf_cpu_map__put(evsel->cpus); in __perf_evlist__propagate_maps()
50 evsel->cpus = perf_cpu_map__get(evlist->cpus); in __perf_evlist__propagate_maps()
51 } else if (evsel->cpus != evsel->own_cpus) { in __perf_evlist__propagate_maps()
52 perf_cpu_map__put(evsel->cpus); in __perf_evlist__propagate_maps()
53 evsel->cpus = perf_cpu_map__get(evsel->own_cpus); in __perf_evlist__propagate_maps()
58 evlist->all_cpus = perf_cpu_map__merge(evlist->all_cpus, evsel->cpus); in __perf_evlist__propagate_maps()
128 perf_cpu_map__put(evlist->cpus); in perf_evlist__exit()
131 evlist->cpus = NULL; in perf_evlist__exit()
150 struct perf_cpu_map *cpus, in perf_evlist__set_maps() argument
160 if (cpus != evlist->cpus) { in perf_evlist__set_maps()
161 perf_cpu_map__put(evlist->cpus); in perf_evlist__set_maps()
162 evlist->cpus = perf_cpu_map__get(cpus); in perf_evlist__set_maps()
170 if (!evlist->all_cpus && cpus) in perf_evlist__set_maps()
171 evlist->all_cpus = perf_cpu_map__get(cpus); in perf_evlist__set_maps()
182 err = perf_evsel__open(evsel, evsel->cpus, evsel->threads); in perf_evlist__open()
291 int nr_cpus = perf_cpu_map__nr(evlist->cpus); in perf_evlist__alloc_pollfd()
377 if (evlist->cpus && cpu >= 0) in perf_evlist__set_sid_idx()
378 sid->cpu = evlist->cpus->map[cpu]; in perf_evlist__set_sid_idx()
431 int evlist_cpu = perf_cpu_map__cpu(evlist->cpus, cpu_idx); in mmap_per_evsel()
443 cpu = perf_cpu_map__idx(evsel->cpus, evlist_cpu); in mmap_per_evsel()
542 int nr_cpus = perf_cpu_map__nr(evlist->cpus); in mmap_per_cpu()
570 nr_mmaps = perf_cpu_map__nr(evlist->cpus); in perf_evlist__nr_mmaps()
571 if (perf_cpu_map__empty(evlist->cpus)) in perf_evlist__nr_mmaps()
582 const struct perf_cpu_map *cpus = evlist->cpus; in perf_evlist__mmap_ops() local
595 perf_evsel__alloc_id(evsel, perf_cpu_map__nr(cpus), threads->nr) < 0) in perf_evlist__mmap_ops()
602 if (perf_cpu_map__empty(cpus)) in perf_evlist__mmap_ops()