diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-13 16:50:29 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-14 10:57:17 -0500 |
commit | 4aa65636411ccb12f006a6ad593930655c445ff6 (patch) | |
tree | 0f494705a2a7631070a5372bb53f873684b001c2 /tools/perf/util/symbol.h | |
parent | b3165f414416a717f72a376720564012af5a2e01 (diff) |
perf session: Move kmaps to perf_session
There is still some more work to do to disentangle map creation
from DSO loading, but this happens only for the kernel, and for
the early adopters of perf diff, where this disentanglement
matters most, we'll be testing different kernels, so no problem
here.
Further clarification: right now we create the kernel maps for
the various modules and discontiguous kernel text maps when
loading the DSO, we should do it as a two step process, first
creating the maps, for multiple mappings with the same DSO
store, then doing the dso load just once, for the first hit on
one of the maps sharing this DSO backing store.
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-6-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r-- | tools/perf/util/symbol.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index cf99f88adf39..941ef331790e 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -98,8 +98,11 @@ bool dso__sorted_by_name(const struct dso *self, enum map_type type); | |||
98 | 98 | ||
99 | void dso__sort_by_name(struct dso *self, enum map_type type); | 99 | void dso__sort_by_name(struct dso *self, enum map_type type); |
100 | 100 | ||
101 | struct perf_session; | ||
102 | |||
101 | struct dso *dsos__findnew(const char *name); | 103 | struct dso *dsos__findnew(const char *name); |
102 | int dso__load(struct dso *self, struct map *map, symbol_filter_t filter); | 104 | int dso__load(struct dso *self, struct map *map, struct perf_session *session, |
105 | symbol_filter_t filter); | ||
103 | void dsos__fprintf(FILE *fp); | 106 | void dsos__fprintf(FILE *fp); |
104 | size_t dsos__fprintf_buildid(FILE *fp); | 107 | size_t dsos__fprintf_buildid(FILE *fp); |
105 | 108 | ||
@@ -116,12 +119,10 @@ int sysfs__read_build_id(const char *filename, void *bf, size_t size); | |||
116 | bool dsos__read_build_ids(void); | 119 | bool dsos__read_build_ids(void); |
117 | int build_id__sprintf(u8 *self, int len, char *bf); | 120 | int build_id__sprintf(u8 *self, int len, char *bf); |
118 | 121 | ||
119 | size_t kernel_maps__fprintf(FILE *fp); | ||
120 | |||
121 | int symbol__init(struct symbol_conf *conf); | 122 | int symbol__init(struct symbol_conf *conf); |
123 | int perf_session__create_kernel_maps(struct perf_session *self, | ||
124 | struct symbol_conf *conf); | ||
122 | 125 | ||
123 | struct map_groups; | ||
124 | struct map_groups *kmaps; | ||
125 | extern struct list_head dsos__user, dsos__kernel; | 126 | extern struct list_head dsos__user, dsos__kernel; |
126 | extern struct dso *vdso; | 127 | extern struct dso *vdso; |
127 | #endif /* __PERF_SYMBOL */ | 128 | #endif /* __PERF_SYMBOL */ |