summaryrefslogtreecommitdiff
path: root/src/basic/procfs-util.h
AgeCommit message (Collapse)AuthorFilesLines
2019-01-22procfs-util: expose functionality to query total memoryZbigniew Jędrzejewski-Szmek1-1/+4
procfs_memory_get_current is renamed to procfs_memory_get_used, because "current" can mean anything, including total memory, used memory, and free memory, as long as the value is up to date. No functional change.
2018-02-09procfs-util: add APIs to get consumed CPU time and used memory from /procLennart Poettering1-0/+6
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.
2018-01-22util-lib: add new procfs-util.[ch] API for dealing with tasks limitsLennart Poettering1-0/+8
As it turns out the limit on concurrent tasks on Linux nasty to determine, hence let's appropriate helpers for this.