aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2012-10-20 14:33:19 +0000
committerArnaldo Carvalho de Melo <[email protected]>2012-10-29 14:14:59 +0000
commit0089fa9831f3752869143c7928adb94ac6353085 (patch)
treef13e551a5b5856a5a1cc97853d631abb9b09857e /tools/perf/util/python.c
parentperf header: Add is_perf_magic() func (diff)
downloadkernel-0089fa9831f3752869143c7928adb94ac6353085.tar.gz
kernel-0089fa9831f3752869143c7928adb94ac6353085.zip
perf record: Fix mmap error output condition
The mmap_pages default value is not power of 2 (UINT_MAX). Together with perf_evlist__mmap function returning error value different from EPERM, we get misleading error message: "--mmap_pages/-m value must be a power of two." Fixing this by adding extra check for UINT_MAX value for this error condition. Signed-off-by: Jiri Olsa <[email protected]> Cc: Corey Ashford <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions