In commit 0a76d99f5aa, the cpuacct controller was implicitly enabled in cgroup v2. This patch enables user access to the cpuacct interface files in cgroup v2, allowing statistics such as cpuacct.usage_percpu to be retrieved in the same way as in cgroup v1.
https://virtuozzo.atlassian.net/browse/VSTOR-100092 v2: leveraged a single cftypes set for both v1 and v2 cgroups Signed-off-by: Aleksei Oladko <[email protected]> --- kernel/sched/cpuacct.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/cpuacct.c b/kernel/sched/cpuacct.c index 65a331807e5d..09b8cea57347 100644 --- a/kernel/sched/cpuacct.c +++ b/kernel/sched/cpuacct.c @@ -363,6 +363,7 @@ struct cgroup_subsys cpuacct_cgrp_subsys = { .css_alloc = cpuacct_css_alloc, .css_free = cpuacct_css_free, .legacy_cftypes = files, + .dfl_cftypes = files, .early_init = true, .implicit_on_dfl = true, -- 2.43.0 _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
