Re: [PATCH v7 0/8] riscv: optimize string functions and add kunit tests

From: patchwork-bot+linux-riscv

Date: Fri Apr 03 2026 - 14:31:08 EST


Hello:

This series was applied to riscv/linux.git (for-next)
by Paul Walmsley <pjw@xxxxxxxxxx>:

On Fri, 30 Jan 2026 10:50:10 +0800 you wrote:
> This series provides optimized implementations of strnlen(), strchr(),
> and strrchr() for the RISC-V architecture. The strnlen() implementation
> is derived from the existing optimized strlen(). For strchr() and
> strrchr(), the current versions use simple byte-by-byte assembly logic,
> which will serve as a baseline for future Zbb-based optimizations.
>
> The patch series is organized into three parts:
> 1. Correctness Testing: The first three patches add KUnit test cases
> for strlen(), strnlen(), and strrchr() to ensure the baseline and
> optimized versions are functionally correct.
> 2. Benchmarking Tool: Patches 4 and 5 extend string_kunit to include
> performance measurement capabilities, allowing for comparative
> analysis within the KUnit environment.
> 3. Architectural Optimizations: The final three patches introduce the
> RISC-V specific assembly implementations.
>
> [...]

Here is the summary with links:
- [v7,1/8] lib/string_kunit: add correctness test for strlen()
https://git.kernel.org/riscv/c/abd6819bbf5b
- [v7,2/8] lib/string_kunit: add correctness test for strnlen()
https://git.kernel.org/riscv/c/31a361f466a2
- [v7,3/8] lib/string_kunit: add correctness test for strrchr()
https://git.kernel.org/riscv/c/68768cdba710
- [v7,4/8] lib/string_kunit: add performance benchmark for strlen()
https://git.kernel.org/riscv/c/54a7a0ca4b60
- [v7,5/8] lib/string_kunit: extend benchmarks to strnlen() and chr searches
https://git.kernel.org/riscv/c/d52a2222768b
- [v7,6/8] riscv: lib: add strnlen() implementation
https://git.kernel.org/riscv/c/018ffd93d25f
- [v7,7/8] riscv: lib: add strchr() implementation
https://git.kernel.org/riscv/c/bf74efe28f7c
- [v7,8/8] riscv: lib: add strrchr() implementation
https://git.kernel.org/riscv/c/3dcf058583a1

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html