linux/tools/testing/selftests/cgroup
Michal Koutný 3b0dec689a selftests: cgroup: Make test_pids backwards compatible
The predicates in test expect event counting from 73e75e6fc3
("cgroup/pids: Separate semantics of pids.events related to pids.max")
and the test would fail on older kernels. We want to have one version of
tests for all, so detect the feature and skip the test on old kernels.
(The test could even switch to check v1 semantics based on the flag but
keep it simple for now.)

Fixes: 9f34c56602 ("selftests: cgroup: Add basic tests for pids controller")
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Tested-by: Sebastian Chlad <sebastian.chlad@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2025-08-27 05:59:52 -10:00
..
lib selftests: cgroup: Make test_pids backwards compatible 2025-08-27 05:59:52 -10:00
.gitignore
Makefile cgroup: selftests: Move cgroup_util into its own library 2025-05-16 11:45:15 -07:00
config
memcg_protection.m
test_core.c selftests: cgroup: Fix compilation on pre-cgroupns kernels 2025-06-17 08:13:25 -10:00
test_cpu.c selftests/cgroup: fix cpu.max tests 2025-07-17 08:12:19 -10:00
test_cpuset.c
test_cpuset_prs.sh selftest/cgroup: Add a remote partition transition test to test_cpuset_prs.sh 2025-03-31 13:28:19 -10:00
test_cpuset_v1_base.sh cgroup/cpuset: add sefltest for cpuset v1 2024-08-30 10:00:17 -10:00
test_cpuset_v1_hp.sh selftests/cgroup: use bash in test_cpuset_v1_hp.sh 2025-02-04 09:36:54 -10:00
test_freezer.c cgroup: selftests: Add tests for freezer time 2025-08-22 07:50:52 -10:00
test_hugetlb_memcg.c
test_kill.c
test_kmem.c selftests: cgroup: Allow longer timeout for kmem_dead_cgroups cleanup 2025-07-12 07:34:49 -10:00
test_memcontrol.c Generic: 2025-06-02 12:24:58 -07:00
test_pids.c selftests: cgroup: Make test_pids backwards compatible 2025-08-27 05:59:52 -10:00
test_stress.sh
test_zswap.c selftests: cgroup: Fix missing newline in test_zswap_writeback_one 2025-07-12 07:35:30 -10:00
wait_inotify.c
with_stress.sh