• Home
  • Raw
  • Download

Lines Matching refs:ctrl_name

119 	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
602 struct cgroup_ctrl *const ctrl = cgroup_find_ctrl(ctrl_name); in tst_cgroup_require()
606 tst_brk(TBROK, "'%s' controller is unknown to LTP", ctrl_name); in tst_cgroup_require()
615 tst_res(TWARN, "Duplicate %s(%s, )", __func__, ctrl->ctrl_name); in tst_cgroup_require()
638 ctrl->ctrl_name); in tst_cgroup_require()
649 cgsc, "+%s", ctrl->ctrl_name); in tst_cgroup_require()
652 cgsc, "+%s", ctrl->ctrl_name); in tst_cgroup_require()
663 cgsc, "+%s", ctrl->ctrl_name); in tst_cgroup_require()
795 "-%s", ctrl->ctrl_name); in tst_cgroup_cleanup()
859 "+%s", ctrl->ctrl_name); in cgroup_group_add_dir()
915 char ctrl_name[32]; in cgroup_file_find() local
927 memcpy(ctrl_name, file_name, len); in cgroup_file_find()
928 ctrl_name[len] = '\0'; in cgroup_file_find()
930 ctrl = cgroup_find_ctrl(ctrl_name); in cgroup_file_find()
934 "Did not find controller '%s'\n", ctrl_name); in cgroup_file_find()
946 file_name, ctrl->ctrl_name); in cgroup_file_find()
955 const char *const ctrl_name) in tst_cgroup_ver() argument
957 const struct cgroup_ctrl *const ctrl = cgroup_find_ctrl(ctrl_name); in tst_cgroup_ver()
960 if (!strcmp(ctrl_name, "cgroup")) { in tst_cgroup_ver()
969 TBROK, "Unknown controller '%s'", ctrl_name); in tst_cgroup_ver()
978 ctrl_name, cg->group_name); in tst_cgroup_ver()