aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r--tools/perf/util/symbol.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index 124302778c09..e6a59e5c2bea 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -80,6 +80,12 @@ static inline void *symbol__priv(struct symbol *self)
80 return ((void *)self) - symbol_conf.priv_size; 80 return ((void *)self) - symbol_conf.priv_size;
81} 81}
82 82
83struct ref_reloc_sym {
84 const char *name;
85 u64 addr;
86 u64 unrelocated_addr;
87};
88
83struct addr_location { 89struct addr_location {
84 struct thread *thread; 90 struct thread *thread;
85 struct map *map; 91 struct map *map;
@@ -126,12 +132,11 @@ static inline struct dso *dsos__findnew(const char *name)
126 return __dsos__findnew(&dsos__user, name); 132 return __dsos__findnew(&dsos__user, name);
127} 133}
128 134
129struct perf_session; 135int dso__load(struct dso *self, struct map *map, symbol_filter_t filter);
130
131int dso__load(struct dso *self, struct map *map, struct perf_session *session,
132 symbol_filter_t filter);
133int dso__load_vmlinux_path(struct dso *self, struct map *map, 136int dso__load_vmlinux_path(struct dso *self, struct map *map,
134 struct perf_session *session, symbol_filter_t filter); 137 symbol_filter_t filter);
138int dso__load_kallsyms(struct dso *self, const char *filename, struct map *map,
139 symbol_filter_t filter);
135void dsos__fprintf(FILE *fp); 140void dsos__fprintf(FILE *fp);
136size_t dsos__fprintf_buildid(FILE *fp, bool with_hits); 141size_t dsos__fprintf_buildid(FILE *fp, bool with_hits);
137 142
@@ -156,9 +161,5 @@ int kallsyms__parse(const char *filename, void *arg,
156int symbol__init(void); 161int symbol__init(void);
157bool symbol_type__is_a(char symbol_type, enum map_type map_type); 162bool symbol_type__is_a(char symbol_type, enum map_type map_type);
158 163
159int perf_session__create_kernel_maps(struct perf_session *self);
160
161struct map *perf_session__new_module_map(struct perf_session *self, u64 start,
162 const char *filename);
163extern struct dso *vdso; 164extern struct dso *vdso;
164#endif /* __PERF_SYMBOL */ 165#endif /* __PERF_SYMBOL */