Lines Matching refs:evsel

21 	struct evsel *evsel;  in evlist__add_default_hybrid()  local
29 evsel = evsel__new_cycles(precise, PERF_TYPE_HARDWARE, in evlist__add_default_hybrid()
31 if (!evsel) 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()
37 evsel->pmu_name = strdup(pmu->name); in evlist__add_default_hybrid()
38 evlist__add(evlist, evsel); in evlist__add_default_hybrid()
44 static bool group_hybrid_conflict(struct evsel *leader) in group_hybrid_conflict()
46 struct evsel *pos, *prev = NULL; in group_hybrid_conflict()
63 struct evsel *evsel; in evlist__warn_hybrid_group() local
65 evlist__for_each_entry(evlist, evsel) { in evlist__warn_hybrid_group()
66 if (evsel__is_group_leader(evsel) && in evlist__warn_hybrid_group()
67 evsel->core.nr_members > 1 && in evlist__warn_hybrid_group()
68 group_hybrid_conflict(evsel)) { in evlist__warn_hybrid_group()
78 struct evsel *evsel; in evlist__has_hybrid() local
80 evlist__for_each_entry(evlist, evsel) { in evlist__has_hybrid()
81 if (evsel->pmu_name && in evlist__has_hybrid()
82 perf_pmu__is_hybrid(evsel->pmu_name)) { in evlist__has_hybrid()
93 struct evsel *evsel, *tmp; in evlist__fix_hybrid_cpus() local
112 evlist__for_each_entry_safe(evlist, tmp, evsel) { in evlist__fix_hybrid_cpus()
116 pmu = perf_pmu__find_hybrid_pmu(evsel->pmu_name); in evlist__fix_hybrid_cpus()
131 perf_cpu_map__put(evsel->core.cpus); in evlist__fix_hybrid_cpus()
132 perf_cpu_map__put(evsel->core.own_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()
139 buf1, pmu->name, evsel->name); in evlist__fix_hybrid_cpus()
144 evlist__remove(evlist, evsel); in evlist__fix_hybrid_cpus()
145 evsel__delete(evsel); in evlist__fix_hybrid_cpus()