aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-01-14 15:30:06 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-16 04:58:47 -0500
commit9e201442de7c954f03710ac76f28c1927d07550c (patch)
tree7682ebe87ca85468e0ecd28b277013e9359605c0 /tools/perf/util/symbol.h
parent8d0591f6ad9edf66697ce29de176fb6f3213b9e3 (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.h5
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);
144int sysfs__read_build_id(const char *filename, void *bf, size_t size); 144int sysfs__read_build_id(const char *filename, void *bf, size_t size);
145bool dsos__read_build_ids(void); 145bool dsos__read_build_ids(void);
146int build_id__sprintf(u8 *self, int len, char *bf); 146int build_id__sprintf(u8 *self, int len, char *bf);
147int kallsyms__parse(void *arg, int (*process_symbol)(void *arg, const char *name, 147int 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
150int symbol__init(void); 151int symbol__init(void);
151bool symbol_type__is_a(char symbol_type, enum map_type map_type); 152bool symbol_type__is_a(char symbol_type, enum map_type map_type);