]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf/s390: Implement get_preempt_count()
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 17 Feb 2026 16:05:09 +0000 (17:05 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 3 Mar 2026 16:35:07 +0000 (08:35 -0800)
commit0f87614c4dbdd14bbcc23c69b09be58177ce7b9b
treeade91f9d2ca3f424da9d4f109db585845f79459f
parent6fe54677bcc2e7a42f5fcaa3c66600232ba54d44
bpf/s390: Implement get_preempt_count()

exe_ctx test fails on s390, because get_preempt_count() is not
implemented and its fallback path always returns 0. Implement it
using the new bpf_get_lowcore() kfunc.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20260217160813.100855-3-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_experimental.h