path: root/tools/testing/selftests/cgroup/cgroup_util.c
diff options
authorDavid Vernet <void@manifault.com>2022-04-22 10:33:51 -0700
committerTejun Heo <tj@kernel.org>2022-04-22 08:39:32 -1000
commit3c879a1bb88792c05c2dd6a957423838b2830d73 (patch)
treec08614ef0ac6f46817fe5bc4e66bdf7d2e131b42 /tools/testing/selftests/cgroup/cgroup_util.c
parentcgroup: Add new test_cpu.c test suite in cgroup selftests (diff)
cgroup: Add test_cpucg_stats() testcase to cgroup cpu selftests
test_cpu.c includes testcases that validate the cgroup cpu controller. This patch adds a new testcase called test_cpucg_stats() that verifies the expected behavior of the cpu.stat interface. In doing so, we define a new hog_cpus_timed() function which takes a cpu_hog_func_param struct that configures how many CPUs it uses, and how long it runs. Future patches will also spawn threads that hog CPUs, so this function will eventually serve those use-cases as well. Signed-off-by: David Vernet <void@manifault.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/testing/selftests/cgroup/cgroup_util.c')
0 files changed, 0 insertions, 0 deletions