]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.c
core: cache last CPU usage counter, before destorying a cgroup
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Aug 2016 18:58:10 +0000 (20:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Aug 2016 14:14:21 +0000 (16:14 +0200)
commitfe700f46ec5490efcb8da49e644bb4d781f896f2
tree20564975ed016c16cc4029ca0c46582e484d15a9
parent8b3b6f588cd9aecbfb17664a5961f789b5a11386
core: cache last CPU usage counter, before destorying a cgroup

It is useful for clients to be able to read the last CPU usage counter value of
a unit even if the unit is already terminated. Hence, before destroying a
cgroup's cgroup cache the last CPU usage counter and return it if the cgroup is
gone.
src/core/cgroup.c
src/core/unit.c
src/core/unit.h