diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-11-04 02:46:10 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-04 14:03:32 +0300 |
commit | 2643ce11457a99a85c5bed8dd631e35968e6ca5a (patch) | |
tree | f145996b7ba4db29d34a88a755ab6524266f708e /tools/perf/util/symbol.h | |
parent | a2e71271535fde493c32803b1f34789f97efcb5e (diff) | |
download | linux-2643ce11457a99a85c5bed8dd631e35968e6ca5a.tar.xz |
perf symbols: Factor out buildid reading routine
So that we can run it without having a DSO instance.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <1257291970-8208-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r-- | tools/perf/util/symbol.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 088433062dd4..e0d4a583f8dd 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h @@ -82,6 +82,8 @@ void dsos__fprintf(FILE *fp); size_t dso__fprintf(struct dso *self, FILE *fp); char dso__symtab_origin(const struct dso *self); +int filename__read_build_id(const char *filename, void *bf, size_t size); + int load_kernel(symbol_filter_t filter); void symbol__init(unsigned int priv_size); |