aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r--tools/perf/util/event.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index 51a96c2effde..6b6429b63da3 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -156,18 +156,25 @@ struct symbol *map__find_symbol_by_name(struct map *self, const char *name,
156void map__fixup_start(struct map *self); 156void map__fixup_start(struct map *self);
157void map__fixup_end(struct map *self); 157void map__fixup_end(struct map *self);
158 158
159int event__synthesize_thread(pid_t pid, int (*process)(event_t *event)); 159struct perf_session;
160void event__synthesize_threads(int (*process)(event_t *event)); 160
161int event__synthesize_thread(pid_t pid,
162 int (*process)(event_t *event,
163 struct perf_session *session),
164 struct perf_session *session);
165void event__synthesize_threads(int (*process)(event_t *event,
166 struct perf_session *session),
167 struct perf_session *session);
161 168
162extern char *event__cwd; 169extern char *event__cwd;
163extern int event__cwdlen; 170extern int event__cwdlen;
164extern struct events_stats event__stats; 171extern struct events_stats event__stats;
165extern unsigned long event__total[PERF_RECORD_MAX]; 172extern unsigned long event__total[PERF_RECORD_MAX];
166 173
167int event__process_comm(event_t *self); 174int event__process_comm(event_t *self, struct perf_session *session);
168int event__process_lost(event_t *self); 175int event__process_lost(event_t *self, struct perf_session *session);
169int event__process_mmap(event_t *self); 176int event__process_mmap(event_t *self, struct perf_session *session);
170int event__process_task(event_t *self); 177int event__process_task(event_t *self, struct perf_session *session);
171 178
172struct addr_location; 179struct addr_location;
173int event__preprocess_sample(const event_t *self, struct addr_location *al, 180int event__preprocess_sample(const event_t *self, struct addr_location *al,