]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Introduce __arena_global
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 1 Jul 2024 23:40:28 +0000 (01:40 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 2 Jul 2024 16:31:52 +0000 (18:31 +0200)
commitb6349fd3448cf349af327f90585a712d60265429
treeac0830d54470402fb4b45bc8e2681988bce32bb0
parent2f9469484a3b52c66b799de73bd1ca75617bc8d5
selftests/bpf: Introduce __arena_global

While clang uses __attribute__((address_space(1))) both for defining
arena pointers and arena globals, GCC requires different syntax for
both. While __arena covers the first use case, introduce __arena_global
to cover the second one.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240701234304.14336-11-iii@linux.ibm.com
tools/testing/selftests/bpf/bpf_arena_common.h
tools/testing/selftests/bpf/progs/arena_atomics.c