From c0cd29aa1b2b6be0eb0592b6d0848801f1acc1d1 Mon Sep 17 00:00:00 2001 From: Chris Kirby Date: Wed, 10 Dec 2025 12:34:29 -0600 Subject: [PATCH] Fix run-test.sh buffer multiplier breakage The /sys/kernel/debug/tracing/buffer_size_kb file always reads as "7 (expanded: 1408)". So the -T option to run-test.sh won't work, because it tries to multiply that string by the given factor. It always defaults to 1408 on every platform we currently support. Just use that value so we can specify -T in CI runs. Signed-off-by: Chris Kirby --- tests/run-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 3a6f0377..d6f7d06c 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -400,7 +400,8 @@ if [ -n "$T_INSMOD" ]; then fi if [ -n "$T_TRACE_MULT" ]; then - orig_trace_size=$(cat /sys/kernel/debug/tracing/buffer_size_kb) +# orig_trace_size=$(cat /sys/kernel/debug/tracing/buffer_size_kb) + orig_trace_size=1408 mult_trace_size=$((orig_trace_size * T_TRACE_MULT)) msg "increasing trace buffer size from $orig_trace_size KiB to $mult_trace_size KiB" echo $mult_trace_size > /sys/kernel/debug/tracing/buffer_size_kb