perf tools: Add perf_event_paranoid()
authorAdrian Hunter <[email protected]>
Wed, 11 Dec 2013 12:36:23 +0000 (14:36 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 13 Dec 2013 13:30:20 +0000 (10:30 -0300)
commit1a47245d2f3bf6276c95cd37901b562962d6ae47
tree0df8a19d1170beaea788b629c7cff52201a80cae
parentc506c96b61fa96c9a52ad4d25e895e45c1692650
perf tools: Add perf_event_paranoid()

Add a function to return the value of
/proc/sys/kernel/perf_event_paranoid.

This will be used to determine default values for mmap size because perf
is not subject to mmap limits when perf_event_paranoid is less than
zero.

Signed-off-by: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[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/r/1386765443-26966-12-git-send-email-alexander.shishkin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/evlist.c
tools/perf/util/util.c
tools/perf/util/util.h