diff options
author | Stephane Eranian <eranian@google.com> | 2010-06-17 11:39:01 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-06-17 15:20:44 +0200 |
commit | a1ac1d3c085420ea8c809ebbee3bb212ed3616bd (patch) | |
tree | aca14b46e24f277fe7601457039ef5e5ef1421f9 /tools/perf/util/util.h | |
parent | perf symbols: Function descriptor symbol lookup (diff) | |
download | linux-a1ac1d3c085420ea8c809ebbee3bb212ed3616bd.tar.xz linux-a1ac1d3c085420ea8c809ebbee3bb212ed3616bd.zip |
perf record: Add option to avoid updating buildid cache
There are situations where there is enough information in the perf.data
to process the samples. Updating the buildid cache may add unecessary
overhead in terms of disk space and time (copying large elf images).
A persistent option to do this already exists via the perfconfig file,
simply do:
[buildid]
dir = /dev/null
This patch provides a way to suppress builid cache updates on a per-run
basis. It addds a new option, -N, to perf record. Buildids are still
generated in the perf.data file.
Cc: David S. Miller <davem@davemloft.net>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <4c19ef89.93ecd80a.40dc.fffff8e9@mx.google.com>
Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/util.h')
-rw-r--r-- | tools/perf/util/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index de61441b6dd7..f380fed74359 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h @@ -154,6 +154,7 @@ extern void set_die_routine(void (*routine)(const char *err, va_list params) NOR extern int prefixcmp(const char *str, const char *prefix); extern void set_buildid_dir(void); +extern void disable_buildid_cache(void); static inline const char *skip_prefix(const char *str, const char *prefix) { |