chiark / gitweb /
procfs-util: add APIs to get consumed CPU time and used memory from /proc
authorLennart Poettering <lennart@poettering.net>
Fri, 9 Feb 2018 16:32:26 +0000 (17:32 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:59:09 +0000 (07:59 +0200)
commitc3b7f359b022902190c58c1d8f17eb70265bc603
treed3ab05f2063553e9916b692ba542a093a49ca33d
parent459590e77817fd0b3d14168642b96b65a4f829e7
procfs-util: add APIs to get consumed CPU time and used memory from /proc

This is preparation for emulating the "usage_usec" keyed attribute of
the "cpu.stat" property of the root cgroup from data in /proc. Similar,
for emulating the "memory.current" attribute.
src/basic/procfs-util.c
src/basic/procfs-util.h
src/test/test-procfs-util.c