perf record: No need to check for overwrites
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 28 Jan 2011 16:49:19 +0000 (14:49 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 29 Jan 2011 18:23:58 +0000 (16:23 -0200)
commitdc82009aac6ee6e423b48de43a251745c62ab012
tree0f3a37aa7340a173f822e60e77e8c8bd5d520a7d
parent54489c189b1a0c10eaf21c6d2c5916b50442c871
perf record: No need to check for overwrites

As we open the mmap with (PROT_READ | PROT_WRITE), signalling the kernel
with perf_mmap__write_tail() when consuming data, so the kernel will not
overwrite.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c