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.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index 5ad1019607dd..8c4d026e067a 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -64,6 +64,7 @@ struct dso {
64 u8 slen_calculated:1; 64 u8 slen_calculated:1;
65 u8 loaded:1; 65 u8 loaded:1;
66 u8 has_build_id:1; 66 u8 has_build_id:1;
67 u8 kernel:1;
67 unsigned char origin; 68 unsigned char origin;
68 u8 build_id[BUILD_ID_SIZE]; 69 u8 build_id[BUILD_ID_SIZE];
69 u16 long_name_len; 70 u16 long_name_len;
@@ -77,7 +78,6 @@ void dso__delete(struct dso *self);
77 78
78struct symbol *dso__find_symbol(struct dso *self, u64 ip); 79struct symbol *dso__find_symbol(struct dso *self, u64 ip);
79 80
80int dsos__load_kernel(const char *vmlinux, symbol_filter_t filter, int modules);
81struct dso *dsos__findnew(const char *name); 81struct dso *dsos__findnew(const char *name);
82int dso__load(struct dso *self, struct map *map, symbol_filter_t filter); 82int dso__load(struct dso *self, struct map *map, symbol_filter_t filter);
83void dsos__fprintf(FILE *fp); 83void dsos__fprintf(FILE *fp);
@@ -89,16 +89,17 @@ char dso__symtab_origin(const struct dso *self);
89void dso__set_build_id(struct dso *self, void *build_id); 89void dso__set_build_id(struct dso *self, void *build_id);
90 90
91int filename__read_build_id(const char *filename, void *bf, size_t size); 91int filename__read_build_id(const char *filename, void *bf, size_t size);
92bool fetch_build_id_table(struct list_head *head); 92int sysfs__read_build_id(const char *filename, void *bf, size_t size);
93bool dsos__read_build_ids(void);
93int build_id__sprintf(u8 *self, int len, char *bf); 94int build_id__sprintf(u8 *self, int len, char *bf);
94 95
95int load_kernel(symbol_filter_t filter); 96int kernel_maps__init(const char *vmlinux_name, bool try_vmlinux_path,
97 bool use_modules);
98size_t kernel_maps__fprintf(FILE *fp);
96 99
97void symbol__init(unsigned int priv_size); 100void symbol__init(unsigned int priv_size);
98 101
99extern struct list_head dsos; 102extern struct list_head dsos;
100extern struct map *kernel_map; 103extern struct map *kernel_map;
101extern struct dso *vdso; 104extern struct dso *vdso;
102extern const char *vmlinux_name;
103extern int modules;
104#endif /* __PERF_SYMBOL */ 105#endif /* __PERF_SYMBOL */