aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-01-04 13:19:26 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-13 04:09:08 -0500
commit682b335a5bccf9e5b7e74380784aa2f145d04444 (patch)
tree98a2be405f1a162964935d9b33a1acccedec2ea3 /tools/perf/util/symbol.h
parent60666c630bdb33983a894b050b588b663f38f368 (diff)
perf symbols: Generalise the kallsyms parsing routine
Will be used to find an specific symbol by name on 'perf record' to support relocation reference symbols to support relocatable kernels. Still have to conver the perf trace tools to use it instead of their current reimplementation. 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: <1262629169-22797-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index f27e158943e9..21313e87c37b 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -135,6 +135,8 @@ int filename__read_build_id(const char *filename, void *bf, size_t size);
135int sysfs__read_build_id(const char *filename, void *bf, size_t size); 135int sysfs__read_build_id(const char *filename, void *bf, size_t size);
136bool dsos__read_build_ids(void); 136bool dsos__read_build_ids(void);
137int build_id__sprintf(u8 *self, int len, char *bf); 137int build_id__sprintf(u8 *self, int len, char *bf);
138int kallsyms__parse(void *arg, int (*process_symbol)(void *arg, const char *name,
139 char type, u64 start));
138 140
139int symbol__init(void); 141int symbol__init(void);
140int perf_session__create_kernel_maps(struct perf_session *self); 142int perf_session__create_kernel_maps(struct perf_session *self);