Skip to content

selftests: sched: Add default target support for sched

Sinadin Shan linux-kselftest lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 4 repliesSuperseded
  3. v11 patch 8 repliesSuperseded

Changes in v3 from the cover letter

* Use prctl to check core sched support instead of config
* v2 link: https://lore.kernel.org/all/[email protected]/

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selftests: sched: add sched as a default selftest targettools/testing/selftests/Makefile+1 -00 replies
2/2selftests: sched: skip cs_prctl_test for systems with core scheduling disabledtools/testing/selftests/sched/cs_prctl_test.c+33 -12 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchShrikanth HegdeChris Hyser
1/2
2/2T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] selftests: sched: Add default target support for sched

This patch series introduces changes to add default build support for the sched tests in selftests.

The only test under sched is cs_prctl_test which validates cookies when core scheduling is in effect. This test fails on systems where core scheduling is disabled. The patch series also modifies this behaviour to gracefully skip the test on such systems.

A system with core scheduling disabled would skip the test like:
~# ./run_kselftest.sh
TAP version 13
1..1
timeout set to 45
selftests: sched: cs_prctl_test
prctl failed: Invalid argument
Core sched not supported, hence skipping tests
ok 1 selftests: sched: cs_prctl_test # SKIP

---
v3:
* Use prctl to check core sched support instead of config
* v2 link: https://lore.kernel.org/all/[email protected]/
v2:
* Add patch to skip cs_prctl_test on core scheduling disabled systems
* v1 link: https://lore.kernel.org/all/[email protected]
---

Sinadin Shan (2):
selftests: sched: add sched as a default selftest target
selftests: sched: skip cs_prctl_test for systems with core scheduling
disabled

 tools/testing/selftests/Makefile              |  1 +
 tools/testing/selftests/sched/cs_prctl_test.c | 34 ++++++++++++++++++-
 2 files changed, 34 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.5