diff options
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r-- | tools/perf/util/symbol.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 8c4d026e067a..5538691494af 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -49,6 +49,13 @@ struct symbol { | |||
49 | char name[0]; | 49 | char name[0]; |
50 | }; | 50 | }; |
51 | 51 | ||
52 | struct symbol_conf { | ||
53 | unsigned short priv_size; | ||
54 | bool try_vmlinux_path, | ||
55 | use_modules; | ||
56 | const char *vmlinux_name; | ||
57 | }; | ||
58 | |||
52 | extern unsigned int symbol__priv_size; | 59 | extern unsigned int symbol__priv_size; |
53 | 60 | ||
54 | static inline void *symbol__priv(struct symbol *self) | 61 | static inline void *symbol__priv(struct symbol *self) |
@@ -93,11 +100,9 @@ int sysfs__read_build_id(const char *filename, void *bf, size_t size); | |||
93 | bool dsos__read_build_ids(void); | 100 | bool dsos__read_build_ids(void); |
94 | int build_id__sprintf(u8 *self, int len, char *bf); | 101 | int build_id__sprintf(u8 *self, int len, char *bf); |
95 | 102 | ||
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); | 103 | size_t kernel_maps__fprintf(FILE *fp); |
99 | 104 | ||
100 | void symbol__init(unsigned int priv_size); | 105 | int symbol__init(struct symbol_conf *conf); |
101 | 106 | ||
102 | extern struct list_head dsos; | 107 | extern struct list_head dsos; |
103 | extern struct map *kernel_map; | 108 | extern struct map *kernel_map; |