diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-11-27 13:29:16 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-27 14:21:59 -0500 |
commit | 3610583c29563e23dd038d2870f59c88438bf7a3 (patch) | |
tree | cb8d20387bcc8e37b0db2432f339387a4fd52150 /tools/perf/builtin-top.c | |
parent | 605ca4ba017455d39ac6991c58eb1e80fb8af48d (diff) |
perf symbols: Add a 'type' field to struct map
That way we will be able to check if the right symtab is loaded
in the underlying DSO.
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: <1259346563-12568-5-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index ded6cf65ad9c..a0168f260d06 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -996,7 +996,7 @@ static void event__process_mmap(event_t *self) | |||
996 | struct thread *thread = threads__findnew(self->mmap.pid); | 996 | struct thread *thread = threads__findnew(self->mmap.pid); |
997 | 997 | ||
998 | if (thread != NULL) { | 998 | if (thread != NULL) { |
999 | struct map *map = map__new(&self->mmap, NULL, 0); | 999 | struct map *map = map__new(&self->mmap, MAP__FUNCTION, NULL, 0); |
1000 | if (map != NULL) | 1000 | if (map != NULL) |
1001 | thread__insert_map(thread, map); | 1001 | thread__insert_map(thread, map); |
1002 | } | 1002 | } |