STRING_BENCH_BUF(9)
π STRING_BENCH_BUF(9) π
okay bestie, welcome to the Kernel API Manual page for STRING_BENCH_BUF β yes, thatβs the manual name, and we are absolutely not copying the boring duplicate header line, weβre folding it in cute-style π
πΈ NAME πΈ
STRING_BENCH_BUF β a benchmark harness for single-buffer functions. Thatβs the whole vibe β¨
π SYNOPSIS π
STRING_BENCH_BUF (test , buf_name , buf_size , func , ... );
π ARGUMENTS π
testβ KUnit context. yep, the KUnit situation π«Άbuf_nameβ localchar *variable name to be defined.buf_sizeβ localsize_tvariable name to be defined.funcβ the function to benchmark. go off,funcπ...β extra arguments forfunc.
π¦ DESCRIPTION π¦
Prepares a randomized, NUL-terminated buffer and iterates through lengths in bench_lens, defining buf_name and buf_size in each loop. literally the whole little benchmark setup, no cap π
π SEE ALSO π
Kernel file ./lib/tests/string_kunit.c: strscpy_check(9), alloc_max_bench_buffer(9), fill_random_string(9), STRING_BENCH(9).
byeeee, bestie π«Ά β source/version is ./lib/tests, dated October 2026 πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms