linux/tools/testing/selftests/ftrace/test.d/00basic
Tianchen Ding 65f26d15f7 selftests/ftrace: Fix trace_marker_raw test on 64K page kernels
On ARM64 kernels with 64K pages, the trace_marker_raw test fails because
bash's printf builtin uses stdio buffering which splits output into
multiple small write() calls to the tracefs file. Since each individual
write is within TRACE_MARKER_MAX_SIZE (4096), they all succeed, causing
the "too big" write test to incorrectly pass.

Fix by writing through dd with iflag=fullblock to guarantee a single
atomic write() syscall to trace_marker_raw.

Link: https://lore.kernel.org/r/20260601023251.1916483-1-dtcccc@linux.alibaba.com
Fixes: 37f4660138 ("selftests/tracing: Add basic test for trace_marker_raw file")
Signed-off-by: Tianchen Ding <dtcccc@linux.alibaba.com>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2026-06-17 17:17:26 -06:00
..
basic1.tc
basic2.tc License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
basic3.tc License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
basic4.tc selftests/ftrace: Introduce exit_pass and exit_fail 2017-11-15 08:07:53 -07:00
mount_options.tc selftest/ftrace: Generalise ftracetest to use with RV 2025-11-11 12:40:15 +01:00
ringbuffer_size.tc selftests/ftrace: Add ringbuffer size changing testcase 2018-10-24 14:49:36 -06:00
ringbuffer_subbuf_size.tc tracing: Update subbuffer with kilobytes not page order 2023-12-21 11:04:15 -05:00
snapshot.tc selftests/ftrace: Convert required interface checks into requires list 2020-06-16 10:39:20 -06:00
snapshot1.tc selftests/ftrace: Add a basic testcase for snapshot 2023-08-16 15:13:40 -04:00
test_ownership.tc selftests/ftrace: Drop invalid top-level local in test_ownership 2026-06-17 16:27:17 -06:00
trace_marker_raw.tc selftests/ftrace: Fix trace_marker_raw test on 64K page kernels 2026-06-17 17:17:26 -06:00
trace_marker.tc tracing/selftests: Remove exec permissions from trace_marker.tc test 2023-12-22 11:38:53 -05:00
trace_pipe.tc selftests/ftrace: Convert required interface checks into requires list 2020-06-16 10:39:20 -06:00