diff options
Diffstat (limited to 'Documentation/perf_counter/util/symbol.h')
-rw-r--r-- | Documentation/perf_counter/util/symbol.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/perf_counter/util/symbol.h b/Documentation/perf_counter/util/symbol.h index db2fdf9f70a2..b0299bc0cf50 100644 --- a/Documentation/perf_counter/util/symbol.h +++ b/Documentation/perf_counter/util/symbol.h | |||
@@ -19,6 +19,8 @@ struct dso { | |||
19 | char name[0]; | 19 | char name[0]; |
20 | }; | 20 | }; |
21 | 21 | ||
22 | typedef int (*symbol_filter_t)(struct dso *self, struct symbol *sym); | ||
23 | |||
22 | struct dso *dso__new(const char *name, unsigned int sym_priv_size); | 24 | struct dso *dso__new(const char *name, unsigned int sym_priv_size); |
23 | void dso__delete(struct dso *self); | 25 | void dso__delete(struct dso *self); |
24 | 26 | ||
@@ -29,8 +31,9 @@ static inline void *dso__sym_priv(struct dso *self, struct symbol *sym) | |||
29 | 31 | ||
30 | struct symbol *dso__find_symbol(struct dso *self, uint64_t ip); | 32 | struct symbol *dso__find_symbol(struct dso *self, uint64_t ip); |
31 | 33 | ||
32 | int dso__load_kernel(struct dso *self, const char *vmlinux); | 34 | int dso__load_kernel(struct dso *self, const char *vmlinux, |
33 | int dso__load(struct dso *self); | 35 | symbol_filter_t filter); |
36 | int dso__load(struct dso *self, symbol_filter_t filter); | ||
34 | 37 | ||
35 | size_t dso__fprintf(struct dso *self, FILE *fp); | 38 | size_t dso__fprintf(struct dso *self, FILE *fp); |
36 | 39 | ||