linux/tools/testing/selftests/cgroup
David Vernet 4ab93063c8 cgroup: Add test_cpucg_weight_underprovisioned() testcase
test_cpu.c includes testcases that validate the cgroup cpu controller.
This patch adds a new testcase called test_cpucg_weight_underprovisioned()
that verifies that processes with different cpu.weight that are all running
on an underprovisioned system, still get roughly the same amount of cpu
time.

Because test_cpucg_weight_underprovisioned() is very similar to
test_cpucg_weight_overprovisioned(), this patch also pulls the common logic
into a separate helper function that is invoked from both testcases, and
which uses function pointers to invoke the unique portions of the
testcases.

Signed-off-by: David Vernet <void@manifault.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2022-04-22 08:39:32 -10:00
..
.gitignore cgroup: Add new test_cpu.c test suite in cgroup selftests 2022-04-22 08:39:32 -10:00
cgroup_util.c cgroup: Add test_cpucg_weight_overprovisioned() testcase 2022-04-22 08:39:32 -10:00
cgroup_util.h cgroup: Add test_cpucg_weight_overprovisioned() testcase 2022-04-22 08:39:32 -10:00
Makefile cgroup: Add new test_cpu.c test suite in cgroup selftests 2022-04-22 08:39:32 -10:00
test_core.c selftests: cgroup: Test open-time cgroup namespace usage for migration checks 2022-01-06 11:02:29 -10:00
test_cpu.c cgroup: Add test_cpucg_weight_underprovisioned() testcase 2022-04-22 08:39:32 -10:00
test_freezer.c tests/cgroup: move cg_wait_for(), cg_prepare_for_wait() 2021-05-10 10:41:11 -04:00
test_kill.c tests/cgroup: test cgroup.kill 2021-05-10 10:41:11 -04:00
test_kmem.c kselftests: cgroup: update kmem test for new vmstat implementation 2021-04-30 11:20:38 -07:00
test_memcontrol.c selftests: memcg: test high limit for single entry allocation 2022-03-22 15:57:02 -07:00
test_stress.sh selftests: cgroup: Run test_core under interfering stress 2019-10-07 07:11:54 -07:00
with_stress.sh selftests: cgroup: Run test_core under interfering stress 2019-10-07 07:11:54 -07:00