selftests/ftrace: Return unsupported for the unconfigured features
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 3 Jun 2020 02:40:19 +0000 (11:40 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 16 Jun 2020 15:16:27 +0000 (09:16 -0600)
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>
tools/testing/selftests/ftrace/test.d/direct/kprobe-direct.tc
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc

index 801ecb63e84cd9abdb8ee7adbdebf0bd7df23b2e..e95b744b23e4c9348373117b8bcf9c217bf0a742 100644 (file)
@@ -10,7 +10,7 @@ fi
 
 if [ ! -f kprobe_events ]; then
        echo "No kprobe_events file -please build CONFIG_KPROBE_EVENTS"
-       exit_unresolved;
+       exit_unsupported;
 fi
 
 echo "Let the module run a little"
index 0f60087583d8f7b09c38f4ac024fafb9ccc823f4..b41471f301ab748e611e0a3b0ba452a54f3916a9 100644 (file)
@@ -4,7 +4,7 @@
 
 [ -f kprobe_events ] || exit_unsupported # this is configurable
 
-grep -q '\$arg<N>' README || exit_unresolved # depends on arch
+grep -q '\$arg<N>' README || exit_unsupported # depends on arch
 grep -A10 "fetcharg:" README | grep -q 'ustring' || exit_unsupported
 grep -A10 "fetcharg:" README | grep -q '\[u\]<offset>' || exit_unsupported