mirror-linux/tools/testing/selftests/ftrace/test.d/00basic
Fushuai Wang 6e39903c73 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: 37f4660138 ("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>
2026-01-09 15:49:32 -07:00
..
basic1.tc
basic2.tc
basic3.tc
basic4.tc
mount_options.tc selftest/ftrace: Generalise ftracetest to use with RV 2025-11-11 12:40:15 +01:00
ringbuffer_size.tc
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 tracing/selftests: Add tracefs mount options test 2024-11-01 08:57:55 -04:00
trace_marker.tc tracing/selftests: Remove exec permissions from trace_marker.tc test 2023-12-22 11:38:53 -05:00
trace_marker_raw.tc selftests/tracing: Fix test_multiple_writes stall 2026-01-09 15:49:32 -07:00
trace_pipe.tc selftests/ftrace: Convert required interface checks into requires list 2020-06-16 10:39:20 -06:00