Re: [PATCH 3/3] selftests/syscall_user_dispatch: Skip benchmark if SUD is unsupported
From: Gregory Price
Date: Wed Aug 26 2026 - 18:01:57 EST
On Mon, Aug 17, 2026 at 12:16:11PM +0100, Christian Loehle wrote:
> Syscall User Dispatch is unavailable on architectures without generic
> syscall entry. On such architectures, sud_benchmark spends several
> seconds calibrating before its SUD prctl fails with EINVAL.
>
> Probe SUD with a valid disabled configuration before calibration and skip
> when the kernel returns EINVAL. Treat other probe errors as failures and
> continue to run the benchmark unchanged on supported kernels.
>
> Fixes: d87ae0fa21c2 ("selftests: Add benchmark for syscall user dispatch")
> Signed-off-by: Christian Loehle <christian.loehle@xxxxxxx>
Reviewed-by: Gregory Price (Meta) <gourry@xxxxxxxxxx>