4 #include <linux/bitops.h>
5 #include <linux/perf_event.h>
9 PERF_PMU_FORMAT_VALUE_CONFIG,
10 PERF_PMU_FORMAT_VALUE_CONFIG1,
11 PERF_PMU_FORMAT_VALUE_CONFIG2,
14 #define PERF_PMU_FORMAT_BITS 64
20 struct list_head format;
21 struct list_head aliases;
22 struct list_head list;
25 struct perf_pmu *perf_pmu__find(const char *name);
26 int perf_pmu__config(struct perf_pmu *pmu, struct perf_event_attr *attr,
27 struct list_head *head_terms);
28 int perf_pmu__config_terms(struct list_head *formats,
29 struct perf_event_attr *attr,
30 struct list_head *head_terms);
31 int perf_pmu__check_alias(struct perf_pmu *pmu, struct list_head *head_terms);
32 struct list_head *perf_pmu__alias(struct perf_pmu *pmu,
33 struct list_head *head_terms);
34 int perf_pmu_wrap(void);
35 void perf_pmu_error(struct list_head *list, char *name, char const *msg);
37 int perf_pmu__new_format(struct list_head *list, char *name,
38 int config, unsigned long *bits);
39 void perf_pmu__set_format(unsigned long *bits, long from, long to);
40 int perf_pmu__format_parse(char *dir, struct list_head *head);
42 struct perf_pmu *perf_pmu__scan(struct perf_pmu *pmu);
44 void print_pmu_events(const char *event_glob, bool name_only);
46 int perf_pmu__test(void);