diff options
Diffstat (limited to 'tools/perf/util/event.c')
-rw-r--r-- | tools/perf/util/event.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index e2c489533c6..40d8d842a21 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
@@ -1,6 +1,7 @@ | |||
1 | #include <linux/types.h> | 1 | #include <linux/types.h> |
2 | #include "event.h" | 2 | #include "event.h" |
3 | #include "debug.h" | 3 | #include "debug.h" |
4 | #include "session.h" | ||
4 | #include "string.h" | 5 | #include "string.h" |
5 | #include "thread.h" | 6 | #include "thread.h" |
6 | 7 | ||
@@ -186,9 +187,6 @@ void event__synthesize_threads(int (*process)(event_t *event, | |||
186 | closedir(proc); | 187 | closedir(proc); |
187 | } | 188 | } |
188 | 189 | ||
189 | char *event__cwd; | ||
190 | int event__cwdlen; | ||
191 | |||
192 | struct events_stats event__stats; | 190 | struct events_stats event__stats; |
193 | 191 | ||
194 | int event__process_comm(event_t *self, struct perf_session *session __used) | 192 | int event__process_comm(event_t *self, struct perf_session *session __used) |
@@ -212,11 +210,11 @@ int event__process_lost(event_t *self, struct perf_session *session __used) | |||
212 | return 0; | 210 | return 0; |
213 | } | 211 | } |
214 | 212 | ||
215 | int event__process_mmap(event_t *self, struct perf_session *session __used) | 213 | int event__process_mmap(event_t *self, struct perf_session *session) |
216 | { | 214 | { |
217 | struct thread *thread = threads__findnew(self->mmap.pid); | 215 | struct thread *thread = threads__findnew(self->mmap.pid); |
218 | struct map *map = map__new(&self->mmap, MAP__FUNCTION, | 216 | struct map *map = map__new(&self->mmap, MAP__FUNCTION, |
219 | event__cwd, event__cwdlen); | 217 | session->cwd, session->cwdlen); |
220 | 218 | ||
221 | dump_printf(" %d/%d: [%p(%p) @ %p]: %s\n", | 219 | dump_printf(" %d/%d: [%p(%p) @ %p]: %s\n", |
222 | self->mmap.pid, self->mmap.tid, | 220 | self->mmap.pid, self->mmap.tid, |