Lines Matching refs:cpus
19 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus)
28 cpus = perf_cpu_map__get(cpus);
30 for (cpu = 0; cpu < perf_cpu_map__nr(cpus); cpu++) {
35 sysfs, RC_CHK_ACCESS(cpus)->map[cpu].cpu);
54 perf_cpu_map__put(cpus);
60 struct perf_cpu_map *cpus = perf_cpu_map__new(NULL);
63 if (!cpus)
66 ret = _get_cpuid(buf, sz, cpus);
68 perf_cpu_map__put(cpus);
78 if (!pmu || !pmu->cpus)
85 /* read midr from list of cpus mapped to this pmu */
86 res = _get_cpuid(buf, MIDR_SIZE, pmu->cpus);