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