summaryrefslogtreecommitdiff
path: root/Documentation/perf_counter/util/symbol.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-05-28 14:55:26 -0300
committerIngo Molnar <mingo@elte.hu>2009-05-28 23:25:44 +0200
commit69ee69f63c82e63d9c6c6081d12673af4933c51e (patch)
treef96e4dd66b6d1261cccad46ac09e6f1180760c4b /Documentation/perf_counter/util/symbol.h
parenta827c875f2ebe69c6e6db5e7f112d4beb4d80f01 (diff)
downloadlwn-69ee69f63c82e63d9c6c6081d12673af4933c51e.tar.gz
lwn-69ee69f63c82e63d9c6c6081d12673af4933c51e.zip
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.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 {
char name[0];
};
+typedef int (*symbol_filter_t)(struct dso *self, struct symbol *sym);
+
struct dso *dso__new(const char *name, unsigned int sym_priv_size);
void dso__delete(struct dso *self);
@@ -29,8 +31,9 @@ static inline void *dso__sym_priv(struct dso *self, struct symbol *sym)
struct symbol *dso__find_symbol(struct dso *self, uint64_t ip);
-int dso__load_kernel(struct dso *self, const char *vmlinux);
-int dso__load(struct dso *self);
+int dso__load_kernel(struct dso *self, const char *vmlinux,
+ symbol_filter_t filter);
+int dso__load(struct dso *self, symbol_filter_t filter);
size_t dso__fprintf(struct dso *self, FILE *fp);