Home
last modified time | relevance | path

Searched refs:ctrl_name (Results 1 – 2 of 2) sorted by relevance

/third_party/ltp/lib/
Dtst_cgroup.c119 const char *const ctrl_name; member
217 for ((ctrl) = controllers + 1; (ctrl)->ctrl_name; (ctrl)++)
318 ctrl->ctrl_name, in tst_cgroup_print_config()
326 static struct cgroup_ctrl *cgroup_find_ctrl(const char *const ctrl_name) in cgroup_find_ctrl() argument
330 while (ctrl->ctrl_name && strcmp(ctrl_name, ctrl->ctrl_name)) in cgroup_find_ctrl()
333 if (!ctrl->ctrl_name) in cgroup_find_ctrl()
511 sprintf(mnt_path, "%s%s", cgroup_mount_ltp_prefix, ctrl->ctrl_name); in cgroup_mount_v1()
532 if (mount(ctrl->ctrl_name, mnt_path, "cgroup", 0, ctrl->ctrl_name)) { in cgroup_mount_v1()
541 tst_res(TINFO, "Mounted V1 %s CGroup on %s", ctrl->ctrl_name, mnt_path); in cgroup_mount_v1()
598 void tst_cgroup_require(const char *const ctrl_name, in tst_cgroup_require() argument
[all …]
/third_party/ltp/include/
Dtst_cgroup.h115 void tst_cgroup_require(const char *const ctrl_name,
145 #define TST_CGROUP_VER(cg, ctrl_name) \ argument
146 tst_cgroup_ver(__FILE__, __LINE__, (cg), (ctrl_name))
150 const char *const ctrl_name)
153 #define TST_CGROUP_VER_IS_V1(cg, ctrl_name) \ argument
154 (TST_CGROUP_VER((cg), (ctrl_name)) == TST_CGROUP_V1)