]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf/tests: Add 32 bits only long conditional jump tests
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 6 Jan 2025 09:15:31 +0000 (10:15 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 6 Jan 2025 15:10:19 +0000 (16:10 +0100)
commit2532608530eab68207e384053fae7db7f35256ee
tree613dc53a7f67164c9cee6cd6f76d0d43bc2e96f3
parent8c21f88407d230543435445903cfbb4d05b7b339
bpf/tests: Add 32 bits only long conditional jump tests

Commit f1517eb790f9 ("bpf/tests: Expand branch conversion JIT test")
introduced "Long conditional jump tests" but due to those tests making
use of 64 bits DIV and MOD, they don't get jited on powerpc/32,
leading to the long conditional jump test being skiped for unrelated
reason.

Add 4 new tests that are restricted to 32 bits ALU so that the jump
tests can also be performed on platforms that do no support 64 bits
operations.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/609f87a2d84e032c8d9ccb9ba7aebef893698f1e.1736154762.git.christophe.leroy@csgroup.eu
lib/test_bpf.c