Re: [PATCH v3 bpf-next 13/13] selftests/bpf: add selftests for indirect jumps

Eduard Zingerman
2025-09-20T00:58:13Z

On Thu, 2025-09-18 at 09:38 +0000, Anton Protopopov wrote:
> Add selftests for indirect jumps. All the indirect jumps are
> generated from C switch statements, so, if compiled by a compiler
> which doesn't support indirect jumps, then should pass as well.
>
> Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
> ---

Patch #8 adds a lot of error conditions that are effectively untested
at the moment. I think we need to figure out a way to express gotox
tests in inline assembly, independent of clang version, and add a
bunch of correctness tests. …