Re: [PATCH bpf-next v4 10/13] selftests/bpf: Add C tests for 16-byte returns in R0:R2

Eduard Zingerman <[email protected]>
Newsgroups org.kernel.vger.bpf
Message-ID <[email protected]>
On Mon, 2026-08-10 at 17:10 -0700, Yonghong Song wrote:

...

> diff --git a/tools/testing/selftests/bpf/prog_tests/aggregate_ret.c b/tools/testing/selftests/bpf/prog_tests

...

> +static void run_subtest(const char *name, struct bpf_program *prog, bool supported)
> +{
> +	if (!test__start_subtest(name))
> +		return;
> +
> +	if (!supported) {
> +		test__skip();
> +		return;
> +	}
> +
> +	run_prog(prog);
> +}
> +
> +static void test_int128_c(void)

Can this set of runner functions be replaced with RUN_TEST() macro and
__retval() annotations on the BPF side?

...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.