]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libbpf: Add likely/unlikely macros and use them in selftests
authorAnton Protopopov <a.s.protopopov@gmail.com>
Mon, 31 Mar 2025 20:36:18 +0000 (20:36 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 4 Apr 2025 15:53:24 +0000 (08:53 -0700)
commitdafae1ae2ad32d124ce4efb2105c00ccadc7bd32
tree2bc06ff098a7a77679dc0b6c85d9fc8794b059af
parent62aa5790cec89108a23052cc2f00fdd31f9adbac
libbpf: Add likely/unlikely macros and use them in selftests

A few selftests and, more importantly, consequent changes to the
bpf_helpers.h file, use likely/unlikely macros, so define them here
and remove duplicate definitions from existing selftests.

Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250331203618.1973691-3-a.s.protopopov@gmail.com
tools/lib/bpf/bpf_helpers.h
tools/testing/selftests/bpf/bpf_arena_spin_lock.h
tools/testing/selftests/bpf/progs/iters.c