xref: /linux/tools/perf/util/pmus.h (revision 460ea8980511c01c1551012b9a6ec6a06d02da59)
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 struct perf_pmu *perf_pmus__scan_core(struct perf_pmu *pmu);
15 
16 const struct perf_pmu *perf_pmus__pmu_for_pmu_filter(const char *str);
17 
18 int perf_pmus__num_mem_pmus(void);
19 void perf_pmus__print_pmu_events(const struct print_callbacks *print_cb, void *print_state);
20 bool perf_pmus__have_event(const char *pname, const char *name);
21 int perf_pmus__num_core_pmus(void);
22 bool perf_pmus__supports_extended_type(void);
23 char *perf_pmus__default_pmu_name(void);
24 
25 #endif /* __PMUS_H */
26