aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/util/symbol.h
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/perf_counter/util/symbol.h')
-rw-r--r--Documentation/perf_counter/util/symbol.h7
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
22typedef int (*symbol_filter_t)(struct dso *self, struct symbol *sym);
23
22struct dso *dso__new(const char *name, unsigned int sym_priv_size); 24struct dso *dso__new(const char *name, unsigned int sym_priv_size);
23void dso__delete(struct dso *self); 25void 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
30struct symbol *dso__find_symbol(struct dso *self, uint64_t ip); 32struct symbol *dso__find_symbol(struct dso *self, uint64_t ip);
31 33
32int dso__load_kernel(struct dso *self, const char *vmlinux); 34int dso__load_kernel(struct dso *self, const char *vmlinux,
33int dso__load(struct dso *self); 35 symbol_filter_t filter);
36int dso__load(struct dso *self, symbol_filter_t filter);
34 37
35size_t dso__fprintf(struct dso *self, FILE *fp); 38size_t dso__fprintf(struct dso *self, FILE *fp);
36 39