summaryrefslogtreecommitdiff
path: root/src/core/cgroup.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-03-22 11:25:49 +0100
committerLennart Poettering <lennart@poettering.net>2019-04-12 14:25:44 +0200
commit9b2559a13e5b8ccdf3b429f3c7e82159e2a733b5 (patch)
treec49c9b1111c437c31d74d21e3feb41a0598caba4 /src/core/cgroup.h
parentcc6625212f4a2cf41e2fe2cbe64ea71152a377b8 (diff)
downloadsystemd-9b2559a13e5b8ccdf3b429f3c7e82159e2a733b5.tar.gz
core: add new call unit_reset_accounting()
It's a simple wrapper for resetting both IP and CPU accounting in one go. This will become particularly useful when we also needs this to reset IO accounting (to be added in a later commit).
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 050b963579..bfb2fa0a53 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -204,6 +204,7 @@ int unit_get_ip_accounting(Unit *u, CGroupIPAccountingMetric metric, uint64_t *r
int unit_reset_cpu_accounting(Unit *u);
int unit_reset_ip_accounting(Unit *u);
+int unit_reset_accounting(Unit *u);
#define UNIT_CGROUP_BOOL(u, name) \
({ \