perf: builtin-record: Document and check that mmap_pages must be a power of two.
authorNelson Elhage <nelhage@nelhage.com>
Mon, 19 Dec 2011 13:39:32 +0000 (08:39 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Dec 2011 18:53:58 +0000 (16:53 -0200)
commit41d0d933494ce10eb77758a1168b08e317c42e8e
treef907773714846b5b5cf85b4f450bb6fe07b168d4
parent18e6093904abfd51671ff5846c2fdaba9ebbf21b
perf: builtin-record: Document and check that mmap_pages must be a power of two.

Now that we automatically point users at it, let's provide them some
guidance so that they hopefully don't just get mysterious EINVAL's
from the kernel.

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-4-git-send-email-nelhage@nelhage.com
Signed-off-by: Nelson Elhage <nelhage@nelhage.com>
[ committer note: Made it work after 50a682c ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-record.txt
tools/perf/builtin-record.c
tools/perf/util/evlist.c
tools/perf/util/util.h