diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-01-14 15:30:06 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-01-16 04:58:47 -0500 |
commit | 9e201442de7c954f03710ac76f28c1927d07550c (patch) | |
tree | 7682ebe87ca85468e0ecd28b277013e9359605c0 /tools/perf/util/symbol.h | |
parent | 8d0591f6ad9edf66697ce29de176fb6f3213b9e3 (diff) |
perf symbols: Cache /proc/kallsyms files by build-id
So that when we don't have a vmlinux handy we can store the
kallsyms for later use by 'perf report'.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1263501006-14185-3-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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 594156e43b10..36b7c717f5ee 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -144,8 +144,9 @@ int filename__read_build_id(const char *filename, void *bf, size_t size); | |||
144 | int sysfs__read_build_id(const char *filename, void *bf, size_t size); | 144 | int sysfs__read_build_id(const char *filename, void *bf, size_t size); |
145 | bool dsos__read_build_ids(void); | 145 | bool dsos__read_build_ids(void); |
146 | int build_id__sprintf(u8 *self, int len, char *bf); | 146 | int build_id__sprintf(u8 *self, int len, char *bf); |
147 | int kallsyms__parse(void *arg, int (*process_symbol)(void *arg, const char *name, | 147 | int kallsyms__parse(const char *filename, void *arg, |
148 | char type, u64 start)); | 148 | int (*process_symbol)(void *arg, const char *name, |
149 | char type, u64 start)); | ||
149 | 150 | ||
150 | int symbol__init(void); | 151 | int symbol__init(void); |
151 | bool symbol_type__is_a(char symbol_type, enum map_type map_type); | 152 | bool symbol_type__is_a(char symbol_type, enum map_type map_type); |