Home
last modified time | relevance | path

Searched refs:read_resource_pressure (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/test/
Dtest-psi-util.c22 … 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/
Dpsi-util.h27 int read_resource_pressure(const char *path, PressureType type, ResourcePressure *ret);
Dpsi-util.c17 int read_resource_pressure(const char *path, PressureType type, ResourcePressure *ret) { in read_resource_pressure() function
Dcondition.c1083 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/
Doomd-util.c354 r = read_resource_pressure(p, PRESSURE_TYPE_FULL, &ctx->memory_pressure); in oomd_cgroup_context_acquire()