Lines Matching refs:cpus
17 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus)
26 cpus = perf_cpu_map__get(cpus);
28 for (cpu = 0; cpu < perf_cpu_map__nr(cpus); cpu++) {
33 sysfs, cpus->map[cpu]);
57 perf_cpu_map__put(cpus);
67 struct perf_cpu_map *cpus = perf_cpu_map__new(NULL);
70 if (!cpus)
73 ret = _get_cpuid(buf, sz, cpus);
75 perf_cpu_map__put(cpus);
85 if (!pmu || !pmu->cpus)
92 /* read midr from list of cpus mapped to this pmu */
93 res = _get_cpuid(buf, MIDR_SIZE, pmu->cpus);