]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: Add new test_cpu.c test suite in cgroup selftests
authorDavid Vernet <void@manifault.com>
Fri, 22 Apr 2022 17:33:49 +0000 (10:33 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 22 Apr 2022 18:39:32 +0000 (08:39 -1000)
commit9e5dbc9ccc43c0b447c712c0f02abe3c7fd24638
tree431e832b4c16fd7664e13ef06ef88d207f146e24
parent21c869901e1d302207c4719ab0779c9dd6d1f99d
cgroup: Add new test_cpu.c test suite in cgroup selftests

The cgroup selftests suite currently contains tests that validate various
aspects of cgroup, such as validating the expected behavior for memory
controllers, the expected behavior of cgroup.procs, etc. There are no tests
that validate the expected behavior of the cgroup cpu controller.

This patch therefore adds a new test_cpu.c file that will contain cpu
controller testcases. The file currently only contains a single testcase
that validates creating nested cgroups with cgroup.subtree_control
including cpu. Future patches will add more sophisticated testcases that
validate functional aspects of the cpu controller.

Signed-off-by: David Vernet <void@manifault.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/cgroup/.gitignore
tools/testing/selftests/cgroup/Makefile
tools/testing/selftests/cgroup/test_cpu.c [new file with mode: 0644]