Lines Matching full: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()
105 * The evsels are created with hybrid pmu's cpus. But now we in evlist__fix_hybrid_cpus()
106 * need to check and adjust the cpus of evsel by cpu_list because in evlist__fix_hybrid_cpus()
107 * cpu_list may cause conflicts with cpus of evsel. For example, in evlist__fix_hybrid_cpus()
108 * cpus of evsel is cpu0-7, but the cpu_list is cpu6-8, we need in evlist__fix_hybrid_cpus()
109 * to adjust the cpus of evsel to cpu6-7. And then propatate maps 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()
138 pr_warning("WARNING: use %s in '%s' for '%s', skip other cpus in list.\n", 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()