summaryrefslogtreecommitdiff
path: root/src/core/cgroup.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-02-09 19:07:01 +0100
committerLennart Poettering <lennart@poettering.net>2018-02-09 19:07:39 +0100
commitcc6271f17d3c5c200e8a391f10d0afb71403fc28 (patch)
tree446b2b8ab60c11c3c9d65a7bc0a0474dee1b0f34 /src/core/cgroup.h
parent1f73aa0021417c8ba70c78d16d6f68d3032db4ac (diff)
downloadsystemd-cc6271f17d3c5c200e8a391f10d0afb71403fc28.tar.gz
core: turn on memory/cpu/tasks accounting by default for the root slice
The kernel exposes the necessary data in /proc anyway, let's expose it hence by default. With this in place "systemctl status -- -.slice" will show accounting data out-of-the-box now.
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r--src/core/cgroup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index 1f50441412..bc8a6951c9 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -208,6 +208,7 @@ int unit_reset_ip_accounting(Unit *u);
cc ? cc->name : false; \
})
+bool manager_owns_root_cgroup(Manager *m);
bool unit_has_root_cgroup(Unit *u);
int manager_notify_cgroup_empty(Manager *m, const char *group);