summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorHari Bathini <hbathini@linux.ibm.com>2026-03-12 11:01:13 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-03-13 17:13:35 +0300
commit2af3aa702c05ecd05850db9d9e110be9ffa3cf47 (patch)
treef54322e43f8fb90b36fb04f8a439341b20b175c8 /tools/include
parentca0f39a369c5f927c3d004e63a5a778b08a9df94 (diff)
downloadlinux-2af3aa702c05ecd05850db9d9e110be9ffa3cf47.tar.xz
selftests/bpf: Improve test coverage for kfunc call
On powerpc, immediate load instructions are sign extended. In case of unsigned types, arguments should be explicitly zero-extended by the caller. For kfunc call, this needs to be handled in the JIT code. In bpf_kfunc_call_test4(), that tests for sign-extension of signed argument types in kfunc calls, add some additional failure checks. And add bpf_kfunc_call_test5() to test zero-extension of unsigned argument types in kfunc calls. Signed-off-by: Hari Bathini <hbathini@linux.ibm.com> Acked-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20260312080113.843408-1-hbathini@linux.ibm.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions