Lines Matching defs:cpus
380 evsel->core.cpus = perf_cpu_map__get(orig->core.cpus);
1382 perf_cpu_map__put(evsel->core.cpus);
1702 static int evsel__open_cpu(struct evsel *evsel, struct perf_cpu_map *cpus,
1715 if (cpus == NULL) {
1724 cpus = empty_cpu_map;
1745 perf_evsel__alloc_fd(&evsel->core, cpus->nr, nthreads) < 0)
1795 fd = perf_event_open(evsel, pid, cpus->map[cpu],
1801 test_attr__open(&evsel->core.attr, pid, cpus->map[cpu],
1808 if (ignore_missing_thread(evsel, cpus->nr, cpu, threads, thread, err)) {
1974 int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus,
1977 return evsel__open_cpu(evsel, cpus, threads, 0, cpus ? cpus->nr : 1);
1986 int evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu)
1989 return evsel__open_cpu(evsel, cpus, NULL, 0,
1990 cpus ? cpus->nr : 1);
1992 return evsel__open_cpu(evsel, cpus, NULL, cpu, cpu + 1);
2732 struct perf_cpu_map *cpus = evsel->core.cpus;
2735 if (perf_evsel__alloc_id(&evsel->core, cpus->nr, threads->nr))