perf: builtin-record: Provide advice if mmap'ing fails with EPERM.
authorNelson Elhage <nelhage@nelhage.com>
Mon, 19 Dec 2011 13:39:31 +0000 (08:39 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Dec 2011 18:44:34 +0000 (16:44 -0200)
commit18e6093904abfd51671ff5846c2fdaba9ebbf21b
tree5ff067b1fefef24fb8ba91496d7dcbf2a9f06f7d
parentf41612f43be9575e1160460b08c3a760e6e27e1b
perf: builtin-record: Provide advice if mmap'ing fails with EPERM.

This failure is most likely due to running up against the
kernel.perf_event_mlock_kb sysctl, so we can tell the user what to do to
fix the issue.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1324301972-22740-3-git-send-email-nelhage@nelhage.com
Signed-off-by: Nelson Elhage <nelhage@nelhage.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c