diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-13 16:50:24 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-14 10:57:13 -0500 |
commit | d8f66248d6f25f7c935cc5307c43bf394db07272 (patch) | |
tree | f30b5512dd08e6a8713fa9fde158c75d57ce1d6b /tools/perf/util/event.h | |
parent | 2cd9046cc53dd2625e2cf5854d6cbb1ba61de914 (diff) |
perf session: Pass the perf_session to the event handling operations
They will need it to get the right threads list, etc.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1260741029-4430-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r-- | tools/perf/util/event.h | 19 |
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, | |||
156 | void map__fixup_start(struct map *self); | 156 | void map__fixup_start(struct map *self); |
157 | void map__fixup_end(struct map *self); | 157 | void map__fixup_end(struct map *self); |
158 | 158 | ||
159 | int event__synthesize_thread(pid_t pid, int (*process)(event_t *event)); | 159 | struct perf_session; |
160 | void event__synthesize_threads(int (*process)(event_t *event)); | 160 | |
161 | int event__synthesize_thread(pid_t pid, | ||
162 | int (*process)(event_t *event, | ||
163 | struct perf_session *session), | ||
164 | struct perf_session *session); | ||
165 | void event__synthesize_threads(int (*process)(event_t *event, | ||
166 | struct perf_session *session), | ||
167 | struct perf_session *session); | ||
161 | 168 | ||
162 | extern char *event__cwd; | 169 | extern char *event__cwd; |
163 | extern int event__cwdlen; | 170 | extern int event__cwdlen; |
164 | extern struct events_stats event__stats; | 171 | extern struct events_stats event__stats; |
165 | extern unsigned long event__total[PERF_RECORD_MAX]; | 172 | extern unsigned long event__total[PERF_RECORD_MAX]; |
166 | 173 | ||
167 | int event__process_comm(event_t *self); | 174 | int event__process_comm(event_t *self, struct perf_session *session); |
168 | int event__process_lost(event_t *self); | 175 | int event__process_lost(event_t *self, struct perf_session *session); |
169 | int event__process_mmap(event_t *self); | 176 | int event__process_mmap(event_t *self, struct perf_session *session); |
170 | int event__process_task(event_t *self); | 177 | int event__process_task(event_t *self, struct perf_session *session); |
171 | 178 | ||
172 | struct addr_location; | 179 | struct addr_location; |
173 | int event__preprocess_sample(const event_t *self, struct addr_location *al, | 180 | int event__preprocess_sample(const event_t *self, struct addr_location *al, |