mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
perf record: Fix display of incorrect mmap pages
'mmap_pages' is 'unsigned int' not 'int' e.g. perf record -m2147483648 uname Permission error mapping pages. Consider increasing /proc/sys/kernel/perf_event_mlock_kb, or try again with a smaller value of -m/--mmap_pages. (current value: -2147483648) Fixed: perf record -m2147483648 uname Permission error mapping pages. Consider increasing /proc/sys/kernel/perf_event_mlock_kb, or try again with a smaller value of -m/--mmap_pages. (current value: 2147483648) Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1386595120-22978-5-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
cc8fae1d81
commit
53653d70a0
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ static int perf_record__open(struct perf_record *rec)
|
||||||
"Consider increasing "
|
"Consider increasing "
|
||||||
"/proc/sys/kernel/perf_event_mlock_kb,\n"
|
"/proc/sys/kernel/perf_event_mlock_kb,\n"
|
||||||
"or try again with a smaller value of -m/--mmap_pages.\n"
|
"or try again with a smaller value of -m/--mmap_pages.\n"
|
||||||
"(current value: %d)\n", opts->mmap_pages);
|
"(current value: %u)\n", opts->mmap_pages);
|
||||||
rc = -errno;
|
rc = -errno;
|
||||||
} else {
|
} else {
|
||||||
pr_err("failed to mmap with %d (%s)\n", errno, strerror(errno));
|
pr_err("failed to mmap with %d (%s)\n", errno, strerror(errno));
|
||||||
|
|
Loading…
Reference in a new issue