diff options
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r-- | tools/perf/util/symbol.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index b53bf0125c1b..6e8490716408 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <linux/list.h> | 6 | #include <linux/list.h> |
7 | #include <linux/rbtree.h> | 7 | #include <linux/rbtree.h> |
8 | #include "module.h" | 8 | #include "module.h" |
9 | #include "event.h" | ||
9 | 10 | ||
10 | #ifdef HAVE_CPLUS_DEMANGLE | 11 | #ifdef HAVE_CPLUS_DEMANGLE |
11 | extern char *cplus_demangle(const char *, int); | 12 | extern char *cplus_demangle(const char *, int); |
@@ -54,7 +55,7 @@ struct dso { | |||
54 | char name[0]; | 55 | char name[0]; |
55 | }; | 56 | }; |
56 | 57 | ||
57 | const char *sym_hist_filter; | 58 | extern const char *sym_hist_filter; |
58 | 59 | ||
59 | typedef int (*symbol_filter_t)(struct dso *self, struct symbol *sym); | 60 | typedef int (*symbol_filter_t)(struct dso *self, struct symbol *sym); |
60 | 61 | ||
@@ -72,9 +73,20 @@ int dso__load_kernel(struct dso *self, const char *vmlinux, | |||
72 | symbol_filter_t filter, int verbose, int modules); | 73 | symbol_filter_t filter, int verbose, int modules); |
73 | int dso__load_modules(struct dso *self, symbol_filter_t filter, int verbose); | 74 | int dso__load_modules(struct dso *self, symbol_filter_t filter, int verbose); |
74 | int dso__load(struct dso *self, symbol_filter_t filter, int verbose); | 75 | int dso__load(struct dso *self, symbol_filter_t filter, int verbose); |
76 | struct dso *dsos__findnew(const char *name); | ||
77 | void dsos__fprintf(FILE *fp); | ||
75 | 78 | ||
76 | size_t dso__fprintf(struct dso *self, FILE *fp); | 79 | size_t dso__fprintf(struct dso *self, FILE *fp); |
77 | char dso__symtab_origin(const struct dso *self); | 80 | char dso__symtab_origin(const struct dso *self); |
78 | 81 | ||
82 | int load_kernel(void); | ||
83 | |||
79 | void symbol__init(void); | 84 | void symbol__init(void); |
85 | |||
86 | extern struct list_head dsos; | ||
87 | extern struct dso *kernel_dso; | ||
88 | extern struct dso *vdso; | ||
89 | extern struct dso *hypervisor_dso; | ||
90 | extern const char *vmlinux_name; | ||
91 | extern int modules; | ||
80 | #endif /* _PERF_SYMBOL_ */ | 92 | #endif /* _PERF_SYMBOL_ */ |