Re: [PATCH bpf-next 3/4] selftests/bpf: __jited_x86 test tag to check x86 assembly after jit

Eduard Zingerman
2024-08-15T21:48:13Z

On Thu, 2024-08-15 at 14:11 -0700, Andrii Nakryiko wrote:

[...]

> > @@ -817,6 +866,21 @@ void run_subtest(struct test_loader *tester,
> > validate_msgs(tester->log_buf, &subspec->expect_xlated, emit_xlated);
> > }
> >
> > + if (arch > 0 && subspec->jited[arch].cnt) {
> > + err = get_jited_program_text(bpf_program__fd(tprog),
> > + tester->log_buf, tester->log_buf_sz);
> > + if (err == -ENOTSUP) {
>
> nit: let's use EOPNOTSUPP, ENOTSUP is internal Linux error

Ok, will change. …