Home
last modified time | relevance | path

Searched refs:matched_cpus (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/tools/perf/util/
Devlist-hybrid.c113 struct perf_cpu_map *matched_cpus, *unmatched_cpus; in evlist__fix_hybrid_cpus() local
120 ret = perf_pmu__cpus_match(pmu, cpus, &matched_cpus, in evlist__fix_hybrid_cpus()
127 if (perf_cpu_map__nr(matched_cpus) > 0 && 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()
133 evsel->core.cpus = perf_cpu_map__get(matched_cpus); in evlist__fix_hybrid_cpus()
134 evsel->core.own_cpus = perf_cpu_map__get(matched_cpus); in evlist__fix_hybrid_cpus()
137 cpu_map__snprint(matched_cpus, buf1, sizeof(buf1)); in evlist__fix_hybrid_cpus()
143 if (perf_cpu_map__nr(matched_cpus) == 0) { in evlist__fix_hybrid_cpus()
154 perf_cpu_map__put(matched_cpus); in evlist__fix_hybrid_cpus()
Dpmu.c2000 struct perf_cpu_map *matched_cpus, *unmatched_cpus; in perf_pmu__cpus_match() local
2004 matched_cpus = perf_cpu_map__default_new(); in perf_pmu__cpus_match()
2005 if (!matched_cpus) in perf_pmu__cpus_match()
2010 perf_cpu_map__put(matched_cpus); in perf_pmu__cpus_match()
2018 matched_cpus->map[matched_nr++] = cpu; in perf_pmu__cpus_match()
2022 matched_cpus->nr = matched_nr; in perf_pmu__cpus_match()
2023 *mcpus_ptr = matched_cpus; in perf_pmu__cpus_match()