Lines Matching defs:ctrl_name
131 const char *const ctrl_name;
268 #define CGROUP_CTRL_MEMBER(x, y)[y] = { .ctrl_name = #x, .files = \
310 for ((ctrl) = controllers; (ctrl)->ctrl_name; (ctrl)++)
401 #define CONFIG_HEADER "ctrl_name ver we_require_it mnt_path we_mounted_it ltp_dir.we_created_it test_dir.dir_name"
422 ctrl->ctrl_name,
433 static struct cgroup_ctrl *cgroup_find_ctrl(const char *const ctrl_name)
438 if (!strcmp(ctrl_name, ctrl->ctrl_name))
459 char ctrl_name[CTRL_NAME_MAX + 1], mnt_path[PATH_MAX_STRLEN + 1], test_dir_name[NAME_MAX + 1];
465 ctrl_name, &ver, &we_require_it, mnt_path, &we_mounted_it,
471 ctrl = cgroup_find_ctrl(ctrl_name);
717 tmpdir, cgroup_mount_ltp_prefix, ctrl->ctrl_name);
738 if (mount(ctrl->ctrl_name, mnt_path, "cgroup", 0, ctrl->ctrl_name)) {
747 tst_res(TINFO, "Mounted V1 %s CGroup on %s", ctrl->ctrl_name, mnt_path);
804 void tst_cg_require(const char *const ctrl_name,
808 struct cgroup_ctrl *const ctrl = cgroup_find_ctrl(ctrl_name);
810 int base = !strcmp(ctrl->ctrl_name, "base");
816 tst_brk(TBROK, "'%s' controller is unknown to LTP", ctrl_name);
822 tst_res(TWARN, "Duplicate %s(%s, )", __func__, ctrl->ctrl_name);
849 ctrl->ctrl_name);
860 ctrl->ctrl_name);
865 ctrl->ctrl_name);
871 cgsc, "+%s", ctrl->ctrl_name);
874 cgsc, "+%s", ctrl->ctrl_name);
886 cgsc, "+%s", ctrl->ctrl_name);
1019 || !strcmp(ctrl->ctrl_name, "base"))
1024 "-%s", ctrl->ctrl_name);
1072 if (strcmp(ctrl->ctrl_name, "base")) {
1074 "+%s", ctrl->ctrl_name);
1149 char ctrl_name[CTRL_NAME_MAX + 1];
1161 memcpy(ctrl_name, file_name, len);
1162 ctrl_name[len] = '\0';
1164 ctrl = cgroup_find_ctrl(ctrl_name);
1168 "Did not find controller '%s'\n", ctrl_name);
1180 file_name, ctrl->ctrl_name);
1189 const char *const ctrl_name)
1191 const struct cgroup_ctrl *const ctrl = cgroup_find_ctrl(ctrl_name);
1194 if (!strcmp(ctrl_name, "cgroup")) {
1203 TBROK, "Unknown controller '%s'", ctrl_name);
1212 ctrl_name, cg->group_name);