1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/perf_event.h>
6 #include <linux/compiler.h>
7 #include <linux/list.h>
11 extern struct list_head perf_pmu__hybrid_pmus;
13 #define perf_pmu__for_each_hybrid_pmu(pmu) \
14 list_for_each_entry(pmu, &perf_pmu__hybrid_pmus, hybrid_list)
16 bool perf_pmu__hybrid_mounted(const char *name);
18 struct perf_pmu *perf_pmu__find_hybrid_pmu(const char *name);
19 bool perf_pmu__is_hybrid(const char *name);
20 char *perf_pmu__hybrid_type_to_pmu(const char *type);
22 static inline int perf_pmu__hybrid_pmu_num(void)
27 perf_pmu__for_each_hybrid_pmu(pmu)
33 #endif /* __PMU_HYBRID_H */