aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-13 16:50:29 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-14 10:57:17 -0500
commit4aa65636411ccb12f006a6ad593930655c445ff6 (patch)
tree0f494705a2a7631070a5372bb53f873684b001c2 /tools/perf/util/symbol.h
parentb3165f414416a717f72a376720564012af5a2e01 (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.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index cf99f88adf3..941ef331790 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
99void dso__sort_by_name(struct dso *self, enum map_type type); 99void dso__sort_by_name(struct dso *self, enum map_type type);
100 100
101struct perf_session;
102
101struct dso *dsos__findnew(const char *name); 103struct dso *dsos__findnew(const char *name);
102int dso__load(struct dso *self, struct map *map, symbol_filter_t filter); 104int dso__load(struct dso *self, struct map *map, struct perf_session *session,
105 symbol_filter_t filter);
103void dsos__fprintf(FILE *fp); 106void dsos__fprintf(FILE *fp);
104size_t dsos__fprintf_buildid(FILE *fp); 107size_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);
116bool dsos__read_build_ids(void); 119bool dsos__read_build_ids(void);
117int build_id__sprintf(u8 *self, int len, char *bf); 120int build_id__sprintf(u8 *self, int len, char *bf);
118 121
119size_t kernel_maps__fprintf(FILE *fp);
120
121int symbol__init(struct symbol_conf *conf); 122int symbol__init(struct symbol_conf *conf);
123int perf_session__create_kernel_maps(struct perf_session *self,
124 struct symbol_conf *conf);
122 125
123struct map_groups;
124struct map_groups *kmaps;
125extern struct list_head dsos__user, dsos__kernel; 126extern struct list_head dsos__user, dsos__kernel;
126extern struct dso *vdso; 127extern struct dso *vdso;
127#endif /* __PERF_SYMBOL */ 128#endif /* __PERF_SYMBOL */