diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2020-05-25 13:20:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-17 17:40:35 +0300 |
commit | fe0957254640074d6bee0b9530fc51d82d91ee1c (patch) | |
tree | 8d4b4103ae746ebff3924f44f4b2d0b694648e6b /tools/testing/selftests | |
parent | 221b26e01d9d94a6e0d85450d31b26bb1e688c1a (diff) | |
download | linux-fe0957254640074d6bee0b9530fc51d82d91ee1c.tar.xz |
selftests/ftrace: Return unsupported if no error_log file
commit 619ee76f5c9f6a1d601d1a056a454d62bf676ae4 upstream.
Check whether error_log file exists in tracing/error_log testcase
and return UNSUPPORTED if no error_log file.
This can happen if we run the ftracetest on the older stable
kernel.
Fixes: 4eab1cc461a6 ("selftests/ftrace: Add tracing/error_log testcase")
Cc: stable@vger.kernel.org
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests')
-rw-r--r-- | tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc b/tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc index 021c03fd885d..23465823532b 100644 --- a/tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc +++ b/tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc @@ -14,6 +14,8 @@ if [ ! -f set_event ]; then exit_unsupported fi +[ -f error_log ] || exit_unsupported + ftrace_errlog_check 'event filter parse error' '((sig >= 10 && sig < 15) || dsig ^== 17) && comm != bash' 'events/signal/signal_generate/filter' exit 0 |