]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/scope.c
core: add new call unit_reset_accounting()
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Mar 2019 10:25:49 +0000 (11:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 12 Apr 2019 12:25:44 +0000 (14:25 +0200)
commit9b2559a13e5b8ccdf3b429f3c7e82159e2a733b5
treec49c9b1111c437c31d74d21e3feb41a0598caba4
parentcc6625212f4a2cf41e2fe2cbe64ea71152a377b8
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).
src/core/cgroup.c
src/core/cgroup.h
src/core/scope.c
src/core/slice.c
src/core/unit.c