diff options
author | David Vernet <void@manifault.com> | 2022-04-22 10:33:53 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2022-04-22 08:39:32 -1000 |
commit | 4ab93063c83a2478863158799b027e9489ad4a40 (patch) | |
tree | 6107a68676051921dd9f64e61bd16a52b79feb06 /scripts/gdb/linux/utils.py | |
parent | 6376b22cd0a3455a534b6921b816ffab68ddc48f (diff) |
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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions