aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-13 16:50:24 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-14 10:57:13 -0500
commitd8f66248d6f25f7c935cc5307c43bf394db07272 (patch)
treef30b5512dd08e6a8713fa9fde158c75d57ce1d6b /tools/perf/util/event.h
parent2cd9046cc53dd2625e2cf5854d6cbb1ba61de914 (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.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,