diff options
Diffstat (limited to 'tools/perf/util/header.h')
-rw-r--r-- | tools/perf/util/header.h | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index 0a88982bc39..54dae5f0955 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h | |||
@@ -68,6 +68,7 @@ struct perf_header { | |||
68 | }; | 68 | }; |
69 | 69 | ||
70 | struct perf_evlist; | 70 | struct perf_evlist; |
71 | struct perf_session; | ||
71 | 72 | ||
72 | int perf_session__read_header(struct perf_session *session, int fd); | 73 | int perf_session__read_header(struct perf_session *session, int fd); |
73 | int perf_session__write_header(struct perf_session *session, | 74 | int perf_session__write_header(struct perf_session *session, |
@@ -96,32 +97,40 @@ int build_id_cache__add_s(const char *sbuild_id, const char *debugdir, | |||
96 | const char *name, bool is_kallsyms); | 97 | const char *name, bool is_kallsyms); |
97 | int build_id_cache__remove_s(const char *sbuild_id, const char *debugdir); | 98 | int build_id_cache__remove_s(const char *sbuild_id, const char *debugdir); |
98 | 99 | ||
99 | int perf_event__synthesize_attr(struct perf_event_attr *attr, u16 ids, u64 *id, | 100 | int perf_event__synthesize_attr(struct perf_event_ops *ops, |
101 | struct perf_event_attr *attr, u16 ids, u64 *id, | ||
100 | perf_event__handler_t process, | 102 | perf_event__handler_t process, |
101 | struct perf_session *session); | 103 | struct perf_session *session); |
102 | int perf_session__synthesize_attrs(struct perf_session *session, | 104 | int perf_event__synthesize_attrs(struct perf_event_ops *ops, |
103 | perf_event__handler_t process); | 105 | struct perf_session *session, |
106 | perf_event__handler_t process); | ||
104 | int perf_event__process_attr(union perf_event *event, struct perf_evlist **pevlist); | 107 | int perf_event__process_attr(union perf_event *event, struct perf_evlist **pevlist); |
105 | 108 | ||
106 | int perf_event__synthesize_event_type(u64 event_id, char *name, | 109 | int perf_event__synthesize_event_type(struct perf_event_ops *ops, |
110 | u64 event_id, char *name, | ||
107 | perf_event__handler_t process, | 111 | perf_event__handler_t process, |
108 | struct perf_session *session); | 112 | struct perf_session *session); |
109 | int perf_event__synthesize_event_types(perf_event__handler_t process, | 113 | int perf_event__synthesize_event_types(struct perf_event_ops *ops, |
114 | perf_event__handler_t process, | ||
110 | struct perf_session *session); | 115 | struct perf_session *session); |
111 | int perf_event__process_event_type(union perf_event *event, | 116 | int perf_event__process_event_type(struct perf_event_ops *ops, |
117 | union perf_event *event, | ||
112 | struct perf_session *session); | 118 | struct perf_session *session); |
113 | 119 | ||
114 | int perf_event__synthesize_tracing_data(int fd, struct perf_evlist *evlist, | 120 | int perf_event__synthesize_tracing_data(struct perf_event_ops *ops, |
121 | int fd, struct perf_evlist *evlist, | ||
115 | perf_event__handler_t process, | 122 | perf_event__handler_t process, |
116 | struct perf_session *session); | 123 | struct perf_session *session); |
117 | int perf_event__process_tracing_data(union perf_event *event, | 124 | int perf_event__process_tracing_data(union perf_event *event, |
118 | struct perf_session *session); | 125 | struct perf_session *session); |
119 | 126 | ||
120 | int perf_event__synthesize_build_id(struct dso *pos, u16 misc, | 127 | int perf_event__synthesize_build_id(struct perf_event_ops *ops, |
128 | struct dso *pos, u16 misc, | ||
121 | perf_event__handler_t process, | 129 | perf_event__handler_t process, |
122 | struct machine *machine, | 130 | struct machine *machine, |
123 | struct perf_session *session); | 131 | struct perf_session *session); |
124 | int perf_event__process_build_id(union perf_event *event, | 132 | int perf_event__process_build_id(struct perf_event_ops *ops, |
133 | union perf_event *event, | ||
125 | struct perf_session *session); | 134 | struct perf_session *session); |
126 | 135 | ||
127 | /* | 136 | /* |