• David Vernet's avatar
    cgroup: Add test_cpucg_weight_overprovisioned() testcase · 6376b22c
    David Vernet authored
    test_cpu.c includes testcases that validate the cgroup cpu controller.
    This patch adds a new testcase called test_cpucg_weight_overprovisioned()
    that verifies the expected behavior of creating multiple processes with
    different cpu.weight, on a system that is overprovisioned.
    
    So as to avoid code duplication, this patch also updates cpu_hog_func_param
    to take a new hog_clock_type enum which informs how time is counted in
    hog_cpus_timed() (either process time or wall clock time).
    Signed-off-by: default avatarDavid Vernet <void@manifault.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    6376b22c
cgroup_util.c 11.1 KB