Lines Matching full:cpus
26 struct perf_cpu_map *cpus; in test__openat_syscall_event_on_all_cpus() local
39 cpus = perf_cpu_map__new(NULL); in test__openat_syscall_event_on_all_cpus()
40 if (cpus == NULL) { in test__openat_syscall_event_on_all_cpus()
54 if (evsel__open(evsel, cpus, threads) < 0) { in test__openat_syscall_event_on_all_cpus()
61 for (cpu = 0; cpu < cpus->nr; ++cpu) { in test__openat_syscall_event_on_all_cpus()
66 * without CPU_ALLOC. 1024 cpus in 2010 still seems in test__openat_syscall_event_on_all_cpus()
69 if (cpus->map[cpu] >= CPU_SETSIZE) { in test__openat_syscall_event_on_all_cpus()
70 pr_debug("Ignoring CPU %d\n", cpus->map[cpu]); in test__openat_syscall_event_on_all_cpus()
74 CPU_SET(cpus->map[cpu], &cpu_set); in test__openat_syscall_event_on_all_cpus()
77 cpus->map[cpu], in test__openat_syscall_event_on_all_cpus()
85 CPU_CLR(cpus->map[cpu], &cpu_set); in test__openat_syscall_event_on_all_cpus()
93 if (evsel__alloc_counts(evsel, cpus->nr, 1) < 0) { in test__openat_syscall_event_on_all_cpus()
94 pr_debug("evsel__alloc_counts(ncpus=%d)\n", cpus->nr); in test__openat_syscall_event_on_all_cpus()
100 for (cpu = 0; cpu < cpus->nr; ++cpu) { in test__openat_syscall_event_on_all_cpus()
103 if (cpus->map[cpu] >= CPU_SETSIZE) in test__openat_syscall_event_on_all_cpus()
115 expected, cpus->map[cpu], perf_counts(evsel->counts, cpu, 0)->val); in test__openat_syscall_event_on_all_cpus()
126 perf_cpu_map__put(cpus); in test__openat_syscall_event_on_all_cpus()