cgroup: Add test_cpucg_max_nested() testcase
authorDavid Vernet <void@manifault.com>
Sat, 23 Apr 2022 12:30:53 +0000 (05:30 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 25 Apr 2022 17:27:31 +0000 (07:27 -1000)
commita79906570f9646ae174dd0899ea54cc2eeffd788
tree23c45ca4aa473ec149e259ca0fc2aa004070fa2b
parent889ab8113ef1386c57d64da106b850e752949f07
cgroup: Add test_cpucg_max_nested() testcase

The cgroup cpu controller selftests have a test_cpucg_max() testcase
that validates the behavior of the cpu.max knob. Let's also add a
testcase that verifies that the behavior works correctly when set on a
nested cgroup.

Signed-off-by: David Vernet <void@manifault.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/cgroup/test_cpu.c