ftrace/kprobes: selftests: Check kretprobe maxactive is supported

Check the kretprobe maxactive is supported by kprobe_events
interface. To ensure the kernel feature, this changes ftrace
README to describe it.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
This commit is contained in:
Masami Hiramatsu
2017-06-07 10:07:22 -06:00
committed by Shuah Khan
parent 1d0864db8f
commit c3ca46ef71
2 changed files with 3 additions and 1 deletions
@@ -2,6 +2,7 @@
# description: Kretprobe dynamic event with maxactive
[ -f kprobe_events ] || exit_unsupported # this is configurable
grep -q 'r\[maxactive\]' README || exit_unsupported # this is older version
echo > kprobe_events