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