Re: [PATCH bpf-next v4 10/13] selftests/bpf: Add C tests for 16-byte returns in R0:R2
Yonghong Song <[email protected]>
| Newsgroups | org.kernel.vger.bpf |
|---|---|
| Message-ID | <[email protected]> |
On 8/12/26 4:15 PM, Eduard Zingerman wrote:
> 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?
Will use RUN_TEST().
>
> ...