Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/ftrace: Return unsupported for the unconfigured features

As same as other test cases, return unsupported if kprobe_events
or argument access feature are not found.

There can be a new arch which does not port those features yet,
and an older kernel which doesn't support it.
Those can not enable the features.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Masami Hiramatsu and committed by
Shuah Khan
1e11b7db 76ebbc27

+2 -2
+1 -1
tools/testing/selftests/ftrace/test.d/direct/kprobe-direct.tc
··· 10 10 11 11 if [ ! -f kprobe_events ]; then 12 12 echo "No kprobe_events file -please build CONFIG_KPROBE_EVENTS" 13 - exit_unresolved; 13 + exit_unsupported; 14 14 fi 15 15 16 16 echo "Let the module run a little"
+1 -1
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc
··· 4 4 5 5 [ -f kprobe_events ] || exit_unsupported # this is configurable 6 6 7 - grep -q '\$arg<N>' README || exit_unresolved # depends on arch 7 + grep -q '\$arg<N>' README || exit_unsupported # depends on arch 8 8 grep -A10 "fetcharg:" README | grep -q 'ustring' || exit_unsupported 9 9 grep -A10 "fetcharg:" README | grep -q '\[u\]<offset>' || exit_unsupported 10 10