From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
To: woradorn.laon@gmail.com
Cc: rostedt@goodmis.org, mhiramat@kernel.org,
linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
inux-trace-kernel@vger.kernel.org,
linux-kernel-mentees@lists.linux.dev, shuah@kernel.org,
skhan@linuxfoundation.org, me@brighamcampbell.com,
jkoolstra@xs4all.nl, woradorn.laon@gmail.com
Subject: Re: [PATCH] tracing/selftests: Fix incorrect invocation of exit_fail
Date: Tue, 13 Oct 2026 00:35:58 +0900 [thread overview]
Message-ID: <20261012153601.6DDF11F0089B@smtp.kernel.org> (raw)
In-Reply-To: <20260918061913.28069-1-woradorn.laon@gmail.com>
On Fri, 18 Sep 2026 13:19:13 +0700, Woradorn Laodhanadhaworn <woradorn.laon@gmail.com> wrote:
> Replace all `exit fail` and `exit_fail;` with exit_fail to keep the
> usage of exit_fail consistent across the ftrace selftests. This also
> reduces warning messsege such as 'exit: Illegal number: fail'
> in test logs.
>
> Signed-off-by: Woradorn Laodhanadhaworn <woradorn.laon@gmail.com>
Looks good to me.
Fixes: 2f84b39f4847 ("tracing: Update subbuffer with kilobytes not page order")
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Shuah, can you pick this fix via your branch?
Thank you,
> ---
> .../ftrace/test.d/00basic/ringbuffer_subbuf_size.tc | 6 +++---
> .../testing/selftests/ftrace/test.d/00basic/trace_marker.tc | 4 ++--
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/tools/testing/selftests/ftrace/test.d/00basic/ringbuffer_subbuf_size.tc b/tools/testing/selftests/ftrace/test.d/00basic/ringbuffer_subbuf_size.tc
> index d44d09a33a74..8cfe59d32b1f 100644
> --- a/tools/testing/selftests/ftrace/test.d/00basic/ringbuffer_subbuf_size.tc
> +++ b/tools/testing/selftests/ftrace/test.d/00basic/ringbuffer_subbuf_size.tc
> @@ -60,7 +60,7 @@ test_buffer() {
> # the size must be greater than or equal to page_size - data_offset
> page_size=$((page_size-data_offset))
> if [ $size -lt $page_size ]; then
> - exit fail
> + exit_fail
> fi
>
> # Now add a little more the meta data overhead will overflow
> @@ -71,14 +71,14 @@ test_buffer() {
> new_str=`awk ' /tracing_mark_write:/ { sub(/^.*tracing_mark_write: /,"");printf "%s", $0; exit}' trace`
>
> if [ "$new_str" = "$str" ]; then
> - exit fail;
> + exit_fail
> fi
>
> # Make sure the entire line can be found
> new_str=`awk ' /tracing_mark_write:/ { sub(/^.*tracing_mark_write: /,"");printf "%s", $0; }' trace`
>
> if [ "$new_str" != "$str" ]; then
> - exit fail;
> + exit_fail
> fi
> }
>
> diff --git a/tools/testing/selftests/ftrace/test.d/00basic/trace_marker.tc b/tools/testing/selftests/ftrace/test.d/00basic/trace_marker.tc
> index 9aa0db2b84fc..1986c1bf1606 100644
> --- a/tools/testing/selftests/ftrace/test.d/00basic/trace_marker.tc
> +++ b/tools/testing/selftests/ftrace/test.d/00basic/trace_marker.tc
> @@ -68,14 +68,14 @@ test_buffer() {
> new_str=`awk ' /tracing_mark_write:/ { sub(/^.*tracing_mark_write: /,"");printf "%s", $0; exit}' trace`
>
> if [ "$new_str" = "$str" ]; then
> - exit fail;
> + exit_fail
> fi
>
> # Make sure the entire line can be found
> new_str=`awk ' /tracing_mark_write:/ { sub(/^.*tracing_mark_write: /,"");printf "%s", $0; }' trace`
>
> if [ "$new_str" != "$str" ]; then
> - exit fail;
> + exit_fail
> fi
> }
>
--
Masami Hiramatsu (Google) <mhiramat@kernel.org>
next prev parent reply other threads:[~2026-10-12 15:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-18 6:19 [PATCH] tracing/selftests: Fix incorrect invocation of exit_fail Woradorn Laodhanadhaworn
2026-10-12 15:35 ` Masami Hiramatsu [this message]
2026-10-13 15:46 ` Shuah Khan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261012153601.6DDF11F0089B@smtp.kernel.org \
--to=mhiramat@kernel.org \
--cc=inux-trace-kernel@vger.kernel.org \
--cc=jkoolstra@xs4all.nl \
--cc=linux-kernel-mentees@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=me@brighamcampbell.com \
--cc=rostedt@goodmis.org \
--cc=shuah@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=woradorn.laon@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox