]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: Fix dsq_local_on selftest
authorTejun Heo <tj@kernel.org>
Wed, 25 Dec 2024 00:09:15 +0000 (14:09 -1000)
committerTejun Heo <tj@kernel.org>
Wed, 25 Dec 2024 00:09:50 +0000 (14:09 -1000)
commitce2b93fc1dfa1c82f2576aa571731c4e5dcc8dd7
tree9f9bce7d687350f9d6659e0e17ba017bc13df882
parent35bf430e08a18fdab6eb94492a06d9ad14c6179b
sched_ext: Fix dsq_local_on selftest

The dsp_local_on selftest expects the scheduler to fail by trying to
schedule an e.g. CPU-affine task to the wrong CPU. However, this isn't
guaranteed to happen in the 1 second window that the test is running.
Besides, it's odd to have this particular exception path tested when there
are no other tests that verify that the interface is working at all - e.g.
the test would pass if dsp_local_on interface is completely broken and fails
on any attempt.

Flip the test so that it verifies that the feature works. While at it, fix a
typo in the info message.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Ihor Solodrai <ihor.solodrai@pm.me>
Link: http://lkml.kernel.org/r/Z1n9v7Z6iNJ-wKmq@slm.duckdns.org
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/sched_ext/dsp_local_on.bpf.c
tools/testing/selftests/sched_ext/dsp_local_on.c