diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-01-20 12:28:45 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-01-21 02:31:29 -0500 |
commit | ef12a141306c90336a3a10d40213ecd98624d274 (patch) | |
tree | 6c6d06c1c7bb5b769cc46c8da05f561aa2443b91 /tools/perf/util/symbol.h | |
parent | dc8d6ab2b61a2d92b5d7438565ccd20b29724cb2 (diff) |
perf buildid-cache: Add new command to manage build-id cache
For now it just has operations to examine a given file, find its
build-id and add or remove it to/from the cache.
Useful, for instance, when adding binaries sent together with a
perf.data file, so that we can add them to the cache and have
the tools find it when resolving symbols.
It'll also manage the size of the cache like 'ccache' does.
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: <1264008525-29025-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, 1 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 525085fd0735..ffe0b0f2e5d3 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -144,7 +144,7 @@ struct symbol *dso__find_symbol_by_name(struct dso *self, enum map_type type, | |||
144 | int filename__read_build_id(const char *filename, void *bf, size_t size); | 144 | int filename__read_build_id(const char *filename, void *bf, size_t size); |
145 | int sysfs__read_build_id(const char *filename, void *bf, size_t size); | 145 | int sysfs__read_build_id(const char *filename, void *bf, size_t size); |
146 | bool dsos__read_build_ids(void); | 146 | bool dsos__read_build_ids(void); |
147 | int build_id__sprintf(u8 *self, int len, char *bf); | 147 | int build_id__sprintf(const u8 *self, int len, char *bf); |
148 | int kallsyms__parse(const char *filename, void *arg, | 148 | int kallsyms__parse(const char *filename, void *arg, |
149 | int (*process_symbol)(void *arg, const char *name, | 149 | int (*process_symbol)(void *arg, const char *name, |
150 | char type, u64 start)); | 150 | char type, u64 start)); |