Lines Matching full:controllers
52 static int __enable_controllers(const char *cgroup_path, const char *controllers) in __enable_controllers() argument
60 /* If not controllers are passed, enable all available controllers */ in __enable_controllers()
61 if (!controllers) { in __enable_controllers()
62 snprintf(path, sizeof(path), "%s/cgroup.controllers", in __enable_controllers()
66 log_err("Opening cgroup.controllers: %s", path); in __enable_controllers()
72 log_err("Reading cgroup.controllers: %s", path); in __enable_controllers()
74 } else if (len == 0) { /* No controllers to enable */ in __enable_controllers()
81 bpf_strlcpy(enable, controllers, sizeof(enable)); in __enable_controllers()
103 * enable_controllers() - Enable cgroup v2 controllers
105 * @controllers: List of controllers to enable in cgroup.controllers format
108 * Enable given cgroup v2 controllers, if @controllers is NULL, enable all
109 * available controllers.
113 int enable_controllers(const char *relative_path, const char *controllers) in enable_controllers() argument
118 return __enable_controllers(cgroup_path, controllers); in enable_controllers()
221 /* Enable all available controllers to increase test coverage */ in setup_cgroup_environment()