diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-11-26 16:39:15 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-11-26 16:39:15 -0500 |
commit | baa2f6cedbfae962f04281a31f08ec29667d31a0 (patch) | |
tree | 6a644f86e234a03bf99518b76daec138016e3bca /tools/perf/util/header.h | |
parent | af86da5318136eb49c0453c2e2be3280ee5d18d9 (diff) |
perf record: Add option to disable collecting build-ids
Collecting build-ids for long running sessions may take a long time
because it needs to traverse the whole just collected perf.data stream
of events, marking the DSOs that had hits and then looking for the
.note.gnu.build-id ELF section.
For things like the 'trace' tool that records and right away consumes
the data on systems where its unlikely that the DSOs being monitored
will change while 'trace' runs, it is desirable to remove build id
collection, so add a -B/--no-buildid option to perf record to allow such
use case.
Longer term we'll avoid all this if we, at DSO load time, in the kernel,
take advantage of this slow code path to collect the build-id and stash
it somewhere, so that we can insert it in the PERF_RECORD_MMAP event.
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/header.h')
-rw-r--r-- | tools/perf/util/header.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index 402ac2454cf8..ed550bffd655 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h | |||
@@ -84,6 +84,7 @@ u64 perf_header__sample_type(struct perf_header *header); | |||
84 | struct perf_event_attr * | 84 | struct perf_event_attr * |
85 | perf_header__find_attr(u64 id, struct perf_header *header); | 85 | perf_header__find_attr(u64 id, struct perf_header *header); |
86 | void perf_header__set_feat(struct perf_header *self, int feat); | 86 | void perf_header__set_feat(struct perf_header *self, int feat); |
87 | void perf_header__clear_feat(struct perf_header *self, int feat); | ||
87 | bool perf_header__has_feat(const struct perf_header *self, int feat); | 88 | bool perf_header__has_feat(const struct perf_header *self, int feat); |
88 | 89 | ||
89 | int perf_header__process_sections(struct perf_header *self, int fd, | 90 | int perf_header__process_sections(struct perf_header *self, int fd, |