]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Check for PREEMPTION instead of PREEMPT
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 19 Nov 2024 16:18:19 +0000 (17:18 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 26 Nov 2024 16:55:01 +0000 (08:55 -0800)
commit6b64128a74ebcacc5a0de5a74834e3b9f47a354c
treeac7247b2e89a8bfd666de0226fee9b2d2c7f152f
parentef3ba8c258ee368a5343fa9329df85b4bcb9e8b5
selftests/bpf: Check for PREEMPTION instead of PREEMPT

CONFIG_PREEMPT is a preemtion model the so called "Low-Latency Desktop".
A different preemption model is PREEMPT_RT the so called "Real-Time".
Both implement preemption in kernel and set CONFIG_PREEMPTION.
There is also the so called "LAZY PREEMPT" which the "Scheduler
controlled preemption model". Here we have also preemption in the kernel
the rules are slightly different.

Therefore the testsuite should not check for CONFIG_PREEMPT (as one
model) but for CONFIG_PREEMPTION to figure out if preemption in the
kernel is possible.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lore.kernel.org/r/20241119161819.qvEcs-n_@linutronix.de
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/map_tests/task_storage_map.c
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
tools/testing/selftests/bpf/progs/read_bpf_task_storage_busy.c
tools/testing/selftests/bpf/progs/task_storage_nodeadlock.c