summaryrefslogtreecommitdiffstats
path: root/src/shared/psi-util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* strv: declare iterator of FOREACH_STRING() in the loopZbigniew Jędrzejewski-Szmek2022-03-231-2/+0
| | | | | | | | | | | Same idea as 03677889f0ef42cdc534bf3b31265a054b20a354. No functional change intended. The type of the iterator is generally changed to be 'const char*' instead of 'char*'. Despite the type commonly used, modifying the string was not allowed. I adjusted the naming of some short variables for clarity and reduced the scope of some variable declarations in code that was being touched anyway.
* oomd: switch system context parsing to use /proc/meminfoAnita Zhang2021-06-301-2/+2
| | | | | Makes it easier in the next commits to unify on one way to read swap and memory info.
* psi: update is_pressure_supported to read fileDan Streetman2021-05-201-6/+13
| | | | | | The kernel still provides the /proc and cgroup pressure files even if its psi support is disabled, so we need to actually read the files to verify they don't return -EOPNOTSUPP
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* shared: helpers to read pressure stats from cgroupsAnita Zhang2020-10-081-0/+118