Home
last modified time | relevance | path

Searched refs:values_close (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c191 if (!values_close(size, current, 3)) in alloc_anon_50M_check()
198 if (!values_close(anon, current, 3)) in alloc_anon_50M_check()
229 if (!values_close(file, current, 10)) in alloc_pagecache_50M_check()
561 while (!values_close(cg_read_long(parent[1], "memory.current"), in test_memcg_protection()
571 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_protection()
577 if (!values_close(c[0], MB(29), 15)) in test_memcg_protection()
580 if (!values_close(c[1], MB(21), 20)) in test_memcg_protection()
596 if (!values_close(cg_read_long(parent[1], "memory.current"), current, 3)) in test_memcg_protection()
684 if (!values_close(current, MB(30), 5)) in alloc_pagecache_max_30M()
896 if (current < goal || values_close(current, goal, 3)) in reclaim_until()
[all …]
H A Dtest_hugetlb_memcg.c129 if (!values_close(expected_current, current, 5)) { in hugetlb_test_program()
141 if (!values_close(expected_current, current, 5)) { in hugetlb_test_program()
153 if (!values_close(expected_current, current, 5)) { in hugetlb_test_program()
H A Dcgroup_util.h
/linux/tools/testing/selftests/cgroup/lib/include/
H A Dcgroup_util.h23 static inline int values_close(long a, long b, int err) in values_close() function