Lines Matching refs:cpus
24 struct perf_cpu_map *cpus; in evlist__add_default_hybrid() local
34 cpus = perf_cpu_map__get(pmu->cpus); in evlist__add_default_hybrid()
35 evsel->core.cpus = cpus; in evlist__add_default_hybrid()
36 evsel->core.own_cpus = perf_cpu_map__get(cpus); in evlist__add_default_hybrid()
92 struct perf_cpu_map *cpus; in evlist__fix_hybrid_cpus() local
100 cpus = perf_cpu_map__new(cpu_list); in evlist__fix_hybrid_cpus()
101 if (!cpus) in evlist__fix_hybrid_cpus()
120 ret = perf_pmu__cpus_match(pmu, cpus, &matched_cpus, in evlist__fix_hybrid_cpus()
129 perf_cpu_map__nr(matched_cpus) < perf_cpu_map__nr(cpus) || in evlist__fix_hybrid_cpus()
130 perf_cpu_map__nr(matched_cpus) < perf_cpu_map__nr(pmu->cpus))) { in evlist__fix_hybrid_cpus()
131 perf_cpu_map__put(evsel->core.cpus); in evlist__fix_hybrid_cpus()
133 evsel->core.cpus = perf_cpu_map__get(matched_cpus); in evlist__fix_hybrid_cpus()
147 cpu_map__snprint(cpus, buf1, sizeof(buf1)); in evlist__fix_hybrid_cpus()
148 cpu_map__snprint(pmu->cpus, buf2, sizeof(buf2)); in evlist__fix_hybrid_cpus()
160 perf_cpu_map__put(cpus); in evlist__fix_hybrid_cpus()