diff options
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 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 | ||
78 | struct symbol *dso__find_symbol(struct dso *self, u64 ip); | 79 | struct symbol *dso__find_symbol(struct dso *self, u64 ip); |
79 | 80 | ||
80 | int dsos__load_kernel(const char *vmlinux, symbol_filter_t filter, int modules); | ||
81 | struct dso *dsos__findnew(const char *name); | 81 | struct dso *dsos__findnew(const char *name); |
82 | int dso__load(struct dso *self, struct map *map, symbol_filter_t filter); | 82 | int dso__load(struct dso *self, struct map *map, symbol_filter_t filter); |
83 | void dsos__fprintf(FILE *fp); | 83 | void dsos__fprintf(FILE *fp); |
@@ -89,16 +89,17 @@ char dso__symtab_origin(const struct dso *self); | |||
89 | void dso__set_build_id(struct dso *self, void *build_id); | 89 | void dso__set_build_id(struct dso *self, void *build_id); |
90 | 90 | ||
91 | int filename__read_build_id(const char *filename, void *bf, size_t size); | 91 | int filename__read_build_id(const char *filename, void *bf, size_t size); |
92 | bool fetch_build_id_table(struct list_head *head); | 92 | int sysfs__read_build_id(const char *filename, void *bf, size_t size); |
93 | bool dsos__read_build_ids(void); | ||
93 | int build_id__sprintf(u8 *self, int len, char *bf); | 94 | int build_id__sprintf(u8 *self, int len, char *bf); |
94 | 95 | ||
95 | int load_kernel(symbol_filter_t filter); | 96 | int kernel_maps__init(const char *vmlinux_name, bool try_vmlinux_path, |
97 | bool use_modules); | ||
98 | size_t kernel_maps__fprintf(FILE *fp); | ||
96 | 99 | ||
97 | void symbol__init(unsigned int priv_size); | 100 | void symbol__init(unsigned int priv_size); |
98 | 101 | ||
99 | extern struct list_head dsos; | 102 | extern struct list_head dsos; |
100 | extern struct map *kernel_map; | 103 | extern struct map *kernel_map; |
101 | extern struct dso *vdso; | 104 | extern struct dso *vdso; |
102 | extern const char *vmlinux_name; | ||
103 | extern int modules; | ||
104 | #endif /* __PERF_SYMBOL */ | 105 | #endif /* __PERF_SYMBOL */ |