aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2014-12-16 12:14:11 -0300
committerArnaldo Carvalho de Melo <[email protected]>2014-12-17 11:58:13 -0300
commitfa37c025c5bec6704dad714365a7f62d9cb13a36 (patch)
treedad2b099ef1c4a3c7e52978f35cdf22bb5833f90 /lib/test-string_helpers.c
parentafcd4f6235659c611f0e62236f6a7bc0ae08af1e (diff)
tools: Adopt rounddown_pow_of_two and deps
Will be used to make sure we pass a power of two when automatically setting up the perf_mmap addr range length, as the kernel code validating input on /proc/sys/kernel/perf_event_mlock_kb accepts any integer, if we plain use it to set up the mmap lenght, we may get an EINVAL when passing a non power of two. Cc: Adrian Hunter <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: David Ahern <[email protected]> Cc: Don Zickus <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions