xref: /openbmc/linux/tools/perf/util/pmus.h (revision 1eaf496e)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PMUS_H
3 #define __PMUS_H
4 
5 struct perf_pmu;
6 struct print_callbacks;
7 
8 void perf_pmus__destroy(void);
9 
10 struct perf_pmu *perf_pmus__find(const char *name);
11 struct perf_pmu *perf_pmus__find_by_type(unsigned int type);
12 
13 struct perf_pmu *perf_pmus__scan(struct perf_pmu *pmu);
14 
15 const struct perf_pmu *perf_pmus__pmu_for_pmu_filter(const char *str);
16 
17 int perf_pmus__num_mem_pmus(void);
18 void perf_pmus__print_pmu_events(const struct print_callbacks *print_cb, void *print_state);
19 bool perf_pmus__have_event(const char *pname, const char *name);
20 bool perf_pmus__has_hybrid(void);
21 
22 #endif /* __PMUS_H */
23