Lines Matching defs:cg
42 static void set_cpu_quota(const struct tst_cg_group *const cg,
48 if (!TST_CG_VER_IS_V1(cg, "cpu")) {
49 SAFE_CG_PRINTF(cg, "cpu.max",
52 SAFE_CG_PRINTF(cg, "cpu.cfs_period_us",
54 SAFE_CG_PRINTF(cg, "cpu.max",
59 tst_cg_group_name(cg), quota_us, period_us);
62 static void mk_cpu_cgroup(struct tst_cg_group **cg,
68 *cg = tst_cg_group_mk(cg_parent, "%s", cg_child_name);
70 set_cpu_quota(*cg, quota_percent);
90 static void fork_busy_procs_in_cgroup(const struct tst_cg_group *const cg)
105 SAFE_CG_PRINTF(cg, "cgroup.procs", "%d", busy_pid);