selftests/ftrace: Return unsupported if no error_log file
authorMasami Hiramatsu <mhiramat@kernel.org>
Mon, 25 May 2020 10:20:57 +0000 (19:20 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jun 2020 14:42:05 +0000 (16:42 +0200)
commit834dbd079e8176204924cb9f7e00afe80841e367
tree2e3b20328ab1b9c52e6e77aa84e2fc65a6689536
parent2ed84f8d090102c701294e1d4f2fd563f4e3702e
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>
tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc