Re: [PATCH bpf-next] bpf, sparc: Add support for BPF_SDIV and BPF_SMOD in the sparc64 JIT
Nicholas Dudar <[email protected]> Tue, 28 Jul 2026 21:36:03 -0400
| Newsgroups | gmane.linux.ports.sparc,gmane.linux.kernel.bpf,gmane.linux.kernel |
|---|---|
| Message-ID | <CAJZwKkhoVSuHqeNaC=3CK07UVLfCTAM0MNFRoi=hZ=X=t=nVNQ@mail.gmail.com> |
On Wed, Jul 29, 2026 at 08:33:15AM +0800, Kuan-Wei Chiu wrote: > I saw that your bpf jit patches span multiple architectures. > Assuming you don't have access to all these different hardware platforms. > Just out of curiosity how were these patches tested? Correct, I used QEMU for my local testing. For sparc64 I cross-compiled bpf-next 520d7d794202 with sparc64-linux-gnu-gcc 11.4.0, then compared complete lib/test_bpf runs from stock and patched kernels under qemu-system-sparc64 -M sun4u. Ten tests changed from FAIL to PASS. I also compared stock and patched runs for x86_32, parisc32/64 and MIPS32/64, including MIPS R6. For LoongArch I reproduced the issue under QEMU and Tiezhu Yang later ran test_bpf with the patch and supplied Tested-by. Thanks, Nicholas