Lines Matching refs:cpu
9 int err = -1, fd, cpu;
42 for (cpu = 0; cpu < cpus->nr; ++cpu) {
43 unsigned int ncalls = nr_open_calls + cpu;
50 if (cpus->map[cpu] >= CPU_SETSIZE) {
51 pr_debug("Ignoring CPU %d\n", cpus->map[cpu]);
55 CPU_SET(cpus->map[cpu], &cpu_set);
58 cpus->map[cpu],
66 CPU_CLR(cpus->map[cpu], &cpu_set);
71 * we use the auto allocation it will allocate just for 1 cpu,
72 * as we start by cpu 0.
81 for (cpu = 0; cpu < cpus->nr; ++cpu) {
84 if (cpus->map[cpu] >= CPU_SETSIZE)
87 if (perf_evsel__read_on_cpu(evsel, cpu, 0) < 0) {
93 expected = nr_open_calls + cpu;
94 if (evsel->counts->cpu[cpu].val != expected) {
95 pr_debug("perf_evsel__read_on_cpu: expected to intercept %d calls on cpu %d, got %" PRIu64 "\n",
96 expected, cpus->map[cpu], evsel->counts->cpu[cpu].val);