Lines Matching refs:cpus

373 	evsel->core.cpus = perf_cpu_map__get(orig->core.cpus);  in evsel__clone()
1474 perf_cpu_map__put(evsel->core.cpus); in evsel__exit()
1637 cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx); in evsel__match_other_cpu()
1638 return perf_cpu_map__idx(other->core.cpus, cpu); in evsel__match_other_cpu()
1792 static int __evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus, in __evsel__prepare_open() argument
1801 if (cpus == NULL) { in __evsel__prepare_open()
1808 cpus = empty_cpu_map; in __evsel__prepare_open()
1822 perf_evsel__alloc_fd(&evsel->core, perf_cpu_map__nr(cpus), nthreads) < 0) in __evsel__prepare_open()
1867 int evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus, in evsel__prepare_open() argument
1872 err = __evsel__prepare_open(evsel, cpus, threads); in evsel__prepare_open()
2019 static int evsel__open_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, in evsel__open_cpu() argument
2027 err = __evsel__prepare_open(evsel, cpus, threads); in evsel__open_cpu()
2031 if (cpus == NULL) in evsel__open_cpu()
2032 cpus = empty_cpu_map; in evsel__open_cpu()
2071 pid, perf_cpu_map__cpu(cpus, idx).cpu, group_fd, evsel->open_flags); in evsel__open_cpu()
2074 perf_cpu_map__cpu(cpus, idx).cpu, in evsel__open_cpu()
2091 perf_cpu_map__cpu(cpus, idx), in evsel__open_cpu()
2133 if (evsel__ignore_missing_thread(evsel, perf_cpu_map__nr(cpus), in evsel__open_cpu()
2171 int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus, in evsel__open() argument
2174 return evsel__open_cpu(evsel, cpus, threads, 0, perf_cpu_map__nr(cpus)); in evsel__open()
2183 int evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu_map_idx) in evsel__open_per_cpu() argument
2186 return evsel__open_cpu(evsel, cpus, NULL, 0, perf_cpu_map__nr(cpus)); in evsel__open_per_cpu()
2188 return evsel__open_cpu(evsel, cpus, NULL, cpu_map_idx, cpu_map_idx + 1); in evsel__open_per_cpu()
3086 struct perf_cpu_map *cpus = evsel->core.cpus; in evsel__store_ids() local
3089 if (perf_evsel__alloc_id(&evsel->core, perf_cpu_map__nr(cpus), threads->nr)) in evsel__store_ids()