]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Use "__se_" prefix on architectures without syscall wrapper
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Fri, 4 Feb 2022 11:35:19 +0000 (17:05 +0530)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 7 Feb 2022 16:05:17 +0000 (08:05 -0800)
commitfcf1865692b5c419affe31139a68046abcb9a951
treedfea1dbeb61b43702b051b577cf2ae939eff44e8
parentfff704579ec488928d7efe92c5d7f8bde00b5b88
selftests/bpf: Use "__se_" prefix on architectures without syscall wrapper

On architectures that don't use a syscall wrapper, sys_* function names
are set as an alias of __se_sys_* functions. Due to this, there is no
BTF associated with sys_* function names. This results in some of the
test progs failing to load. Set the SYS_PREFIX to "__se_" to fix this
issue.

Fixes: 262682f7f18e92 ("selftests/bpf: Fix probe_user test failure with clang build kernel")
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/013d632aacd3e41290445c0025db6a7055ec6e18.1643973917.git.naveen.n.rao@linux.vnet.ibm.com
tools/testing/selftests/bpf/progs/bpf_misc.h