[PATCH bpf-next v3] bpf, arm32: build constants inline instead of using a literal pool

Ramin Moussavi ramin.moussavi at yacoub.de
Wed Dec 2 14:50:03 PST 2026


> bpf-next doesn't have test_bpf since October. See
> commit 4532e525b286 ("selftests/bpf: Remove the old test_bpf module").

I worded that badly, sorry.  The sequence was:

The patch was written against a 6.12 product kernel and verified there
with the test_bpf module, which that tree still has.  When I ported it to
bpf-next the module was gone, and I could not get the selftests to
cross-build for arm32 at the time, so I restored test_bpf locally and
kept measuring with it.  That is the "test_bpf across several
configurations" I referred to -- my own tree, not bpf-next.  I should
have said so.

I have the selftests cross-building for arm32 now, so from here on I can
test against what bpf-next actually has.

> No arm defconfig sets BPF_JIT, and nothing selects it on arm.
> i.MX6 takes this path only with ARCH_MULTI_V6=y and BPF_JIT=y.

Correct, and my i.MX6 example was too broad.  No arm defconfig builds the
JIT at all, so the path only matters once BPF_JIT is turned on, which is
a product or distro decision rather than a defconfig one.  Mine is such a
kernel: ARMv5 core, BPF_JIT_ALWAYS_ON, and an XDP program that would not
load before this patch because the literal pool could not reach past 4K.



More information about the linux-arm-kernel mailing list