diff options
Diffstat (limited to 'tools/perf/util/pmu.h')
-rw-r--r-- | tools/perf/util/pmu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/pmu.h b/tools/perf/util/pmu.h index 32fe55b659fa..6b2cbe2d4cc3 100644 --- a/tools/perf/util/pmu.h +++ b/tools/perf/util/pmu.h | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include <linux/bitops.h> | 4 | #include <linux/bitops.h> |
5 | #include <linux/perf_event.h> | 5 | #include <linux/perf_event.h> |
6 | #include <stdbool.h> | ||
6 | 7 | ||
7 | enum { | 8 | enum { |
8 | PERF_PMU_FORMAT_VALUE_CONFIG, | 9 | PERF_PMU_FORMAT_VALUE_CONFIG, |
@@ -21,7 +22,7 @@ struct perf_pmu { | |||
21 | struct list_head list; | 22 | struct list_head list; |
22 | }; | 23 | }; |
23 | 24 | ||
24 | struct perf_pmu *perf_pmu__find(char *name); | 25 | struct perf_pmu *perf_pmu__find(const char *name); |
25 | int perf_pmu__config(struct perf_pmu *pmu, struct perf_event_attr *attr, | 26 | int perf_pmu__config(struct perf_pmu *pmu, struct perf_event_attr *attr, |
26 | struct list_head *head_terms); | 27 | struct list_head *head_terms); |
27 | int perf_pmu__config_terms(struct list_head *formats, | 28 | int perf_pmu__config_terms(struct list_head *formats, |
@@ -40,5 +41,7 @@ int perf_pmu__format_parse(char *dir, struct list_head *head); | |||
40 | 41 | ||
41 | struct perf_pmu *perf_pmu__scan(struct perf_pmu *pmu); | 42 | struct perf_pmu *perf_pmu__scan(struct perf_pmu *pmu); |
42 | 43 | ||
44 | void print_pmu_events(const char *event_glob, bool name_only); | ||
45 | |||
43 | int perf_pmu__test(void); | 46 | int perf_pmu__test(void); |
44 | #endif /* __PMU_H */ | 47 | #endif /* __PMU_H */ |