diff options
| author | Tianchen Ding <dtcccc@linux.alibaba.com> | 2026-06-01 10:32:51 +0800 |
|---|---|---|
| committer | Shuah Khan <skhan@linuxfoundation.org> | 2026-06-17 17:17:26 -0600 |
| commit | 65f26d15f7db80b0a3f995c518cdddb50e6dea99 (patch) | |
| tree | 28499ea5bd283e5b7038c9c45ac7b1dc7fe9f8c2 /tools/perf/python | |
| parent | 808c447df2fe234eb7d9e08ecf53159d291c104c (diff) | |
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: 37f46601383a ("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>
Diffstat (limited to 'tools/perf/python')
0 files changed, 0 insertions, 0 deletions
