Lines Matching full:controllers
59 static int __enable_controllers(const char *cgroup_path, const char *controllers) in __enable_controllers() argument
67 /* If not controllers are passed, enable all available controllers */ in __enable_controllers()
68 if (!controllers) { in __enable_controllers()
69 snprintf(path, sizeof(path), "%s/cgroup.controllers", in __enable_controllers()
73 log_err("Opening cgroup.controllers: %s", path); in __enable_controllers()
79 log_err("Reading cgroup.controllers: %s", path); in __enable_controllers()
81 } else if (len == 0) { /* No controllers to enable */ in __enable_controllers()
88 bpf_strlcpy(enable, controllers, sizeof(enable)); in __enable_controllers()
110 * enable_controllers() - Enable cgroup v2 controllers
112 * @controllers: List of controllers to enable in cgroup.controllers format
115 * Enable given cgroup v2 controllers, if @controllers is NULL, enable all
116 * available controllers.
120 int enable_controllers(const char *relative_path, const char *controllers) in enable_controllers() argument
125 return __enable_controllers(cgroup_path, controllers); in enable_controllers()
234 /* Enable all available controllers to increase test coverage */ in setup_cgroup_environment()
647 * a named cgroup like "name=systemd", a controller name like "net_cls", or multi-controllers like