diff options
author | Jiri Olsa <[email protected]> | 2012-10-20 16:33:19 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-10-29 12:14:59 -0200 |
commit | 0089fa9831f3752869143c7928adb94ac6353085 (patch) | |
tree | f13e551a5b5856a5a1cc97853d631abb9b09857e /lib/memory-notifier-error-inject.c | |
parent | e84ba4e26833991d1c1c15a592b1474ee2b6dfdb (diff) |
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 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions