Searched refs:read_resource_pressure (Results 1 – 5 of 5) sorted by relevance
/systemd-251/src/test/ |
D | test-psi-util.c | 22 … assert_se(read_resource_pressure("/verylikelynonexistentpath", PRESSURE_TYPE_SOME, &rp) < 0); in TEST() 23 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST() 26 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST() 31 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST() 36 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST() 40 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) == 0); in TEST() 48 assert_se(read_resource_pressure(path, PRESSURE_TYPE_FULL, &rp) == 0); in TEST() 60 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) == 0); in TEST() 68 assert_se(read_resource_pressure(path, PRESSURE_TYPE_FULL, &rp) == 0); in TEST()
|
/systemd-251/src/shared/ |
D | psi-util.h | 27 int read_resource_pressure(const char *path, PressureType type, ResourcePressure *ret);
|
D | psi-util.c | 17 int read_resource_pressure(const char *path, PressureType type, ResourcePressure *ret) { in read_resource_pressure() function
|
D | condition.c | 1083 r = read_resource_pressure(pressure_path, PRESSURE_TYPE_FULL, &pressure); in condition_test_psi() 1085 r = read_resource_pressure(pressure_path, PRESSURE_TYPE_SOME, &pressure); in condition_test_psi()
|
/systemd-251/src/oom/ |
D | oomd-util.c | 354 r = read_resource_pressure(p, PRESSURE_TYPE_FULL, &ctx->memory_pressure); in oomd_cgroup_context_acquire()
|