diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-05-28 13:55:26 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-28 17:25:44 -0400 |
commit | 69ee69f63c82e63d9c6c6081d12673af4933c51e (patch) | |
tree | f96e4dd66b6d1261cccad46ac09e6f1180760c4b /Documentation/perf_counter/util/symbol.h | |
parent | a827c875f2ebe69c6e6db5e7f112d4beb4d80f01 (diff) |
perf_counter tools: Optionally pass a symbol filter to the dso load routines
Will be used by perf top.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20090528175526.GF4747@ghostprotocols.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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 | ||