]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/tracing: Fix test_multiple_writes stall
authorFushuai Wang <wangfushuai@baidu.com>
Fri, 9 Jan 2026 03:36:20 +0000 (11:36 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 9 Jan 2026 22:49:32 +0000 (15:49 -0700)
commit6e39903c73df08b256322d04c4dfe4a82ec63a45
tree61a0058a144352f62814575cfe25c91b9cfd137c
parent9ace4753a5202b02191d54e9fdf7f9e3d02b85eb
selftests/tracing: Fix test_multiple_writes stall

When /sys/kernel/tracing/buffer_size_kb is less than 12KB,
the test_multiple_writes test will stall and wait for more
input due to insufficient buffer space.

Check current buffer_size_kb value before the test. If it is
less than 12KB, it temporarily increase the buffer to 12KB,
and restore the original value after the tests are completed.

Link: https://lore.kernel.org/r/20260109033620.25727-1-fushuai.wang@linux.dev
Fixes: 37f46601383a ("selftests/tracing: Add basic test for trace_marker_raw file")
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Fushuai Wang <wangfushuai@baidu.com>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/00basic/trace_marker_raw.tc