aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/map.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-03-25 18:58:57 -0400
committerIngo Molnar <mingo@elte.hu>2010-03-26 03:52:58 -0400
commitb177f63f5226e75280855bbcd106e677250778bd (patch)
tree6d53e57b95b2115de458172aa3a3ee6fab6e9cd3 /tools/perf/util/map.h
parentd5679ae4d2d4369477dc3b60027cca222aef33e9 (diff)
perf symbols: Pass the mmap parameters instead of using mmap_event
To reduce the coupling of the symbol system with the rest of perf. 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: <1269557941-15617-2-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/map.h')
-rw-r--r--tools/perf/util/map.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/util/map.h b/tools/perf/util/map.h
index b756368076c6..a4a5bc4fca6d 100644
--- a/tools/perf/util/map.h
+++ b/tools/perf/util/map.h
@@ -68,14 +68,13 @@ u64 map__rip_2objdump(struct map *map, u64 rip);
68u64 map__objdump_2ip(struct map *map, u64 addr); 68u64 map__objdump_2ip(struct map *map, u64 addr);
69 69
70struct symbol; 70struct symbol;
71struct mmap_event;
72 71
73typedef int (*symbol_filter_t)(struct map *map, struct symbol *sym); 72typedef int (*symbol_filter_t)(struct map *map, struct symbol *sym);
74 73
75void map__init(struct map *self, enum map_type type, 74void map__init(struct map *self, enum map_type type,
76 u64 start, u64 end, u64 pgoff, struct dso *dso); 75 u64 start, u64 end, u64 pgoff, struct dso *dso);
77struct map *map__new(struct mmap_event *event, enum map_type, 76struct map *map__new(u64 start, u64 len, u64 pgoff, u32 pid, char *filename,
78 char *cwd, int cwdlen); 77 enum map_type type, char *cwd, int cwdlen);
79void map__delete(struct map *self); 78void map__delete(struct map *self);
80struct map *map__clone(struct map *self); 79struct map *map__clone(struct map *self);
81int map__overlap(struct map *l, struct map *r); 80int map__overlap(struct map *l, struct map *r);