* [PATCH] selftests/ftrace: Return unsupported if no error_log file
@ 2020-05-25 10:20 Masami Hiramatsu
2020-05-28 16:45 ` Shuah Khan
0 siblings, 1 reply; 2+ messages in thread
From: Masami Hiramatsu @ 2020-05-25 10:20 UTC (permalink / raw)
To: Shuah Khan, Steven Rostedt
Cc: linux-kselftest, linux-kernel, Shuah Khan, Tom Zanussi, Masami Hiramatsu
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>
---
.../ftrace/test.d/ftrace/tracing-error-log.tc | 2 ++
1 file changed, 2 insertions(+)
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] selftests/ftrace: Return unsupported if no error_log file
2020-05-25 10:20 [PATCH] selftests/ftrace: Return unsupported if no error_log file Masami Hiramatsu
@ 2020-05-28 16:45 ` Shuah Khan
0 siblings, 0 replies; 2+ messages in thread
From: Shuah Khan @ 2020-05-28 16:45 UTC (permalink / raw)
To: Masami Hiramatsu, Steven Rostedt
Cc: linux-kselftest, linux-kernel, Shuah Khan, Tom Zanussi, Shuah Khan
On 5/25/20 4:20 AM, Masami Hiramatsu wrote:
> 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>
> ---
> .../ftrace/test.d/ftrace/tracing-error-log.tc | 2 ++
> 1 file changed, 2 insertions(+)
>
> 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
>
Applied to
git.kernel.org/pub/scm/linux/kernel/git/shuah/linux kselftest.git/ next
branch for Linux 5.8-rc1
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-28 16:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-25 10:20 [PATCH] selftests/ftrace: Return unsupported if no error_log file Masami Hiramatsu
2020-05-28 16:45 ` Shuah Khan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.