]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Feb 2018 16:32:26 +0000 (17:32 +0100)
commita04fcf17badf8ee2ed549bf99c4e5a37e0f7aecf
tree4d3937a1a8f2097f9843be8af8879ffc522ffcf1
parentba4b1544f2a69c6786295d437b2f970f5ed1f68f
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