]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/tracing: Add basic test for trace_marker_raw file
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 14 Oct 2025 18:51:49 +0000 (14:51 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 6 Nov 2025 22:23:50 +0000 (15:23 -0700)
commit37f46601383aa5a19bd42ea99617fa0fa6215f77
tree88f991032c1b471aa5a6c0adf2c557d94cef7dc6
parent3a8660878839faadb4f1a6dd72c3179c1df56787
selftests/tracing: Add basic test for trace_marker_raw file

Commit 64cf7d058a00 ("tracing: Have trace_marker use per-cpu data to read
user space") made an update that fixed both trace_marker and
trace_marker_raw. But the small difference made to trace_marker_raw had a
blatant bug in it that any basic testing would have uncovered.
Unfortunately, the self tests have tests for trace_marker but nothing for
trace_marker_raw which allowed the bug to get upstream.

Add basic selftests to test trace_marker_raw so that this doesn't happen
again.

Link: https://lore.kernel.org/r/20251014145149.3e3c1033@gandalf.local.home
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/00basic/trace_marker_raw.tc [new file with mode: 0644]