Home
last modified time | relevance | path

Searched refs:SAFE_READ_MEMINFO (Results 1 – 25 of 27) sorted by relevance

12

/external/ltp/testcases/kernel/mem/swapping/
Dswapping01.c84 swap_free_init = SAFE_READ_MEMINFO("SwapFree:"); in init_meminfo()
87 mem_available_init = SAFE_READ_MEMINFO("MemFree:") in init_meminfo()
88 + SAFE_READ_MEMINFO("Cached:"); in init_meminfo()
131 swap_free_now = SAFE_READ_MEMINFO("SwapFree:"); in check_swapping()
133 if (abs(swap_free_now - SAFE_READ_MEMINFO("SwapFree:")) < 512) in check_swapping()
139 swap_free_now = SAFE_READ_MEMINFO("SwapFree:"); in check_swapping()
/external/ltp/testcases/kernel/mem/tunable/
Dovercommit_memory.c115 mem_total = SAFE_READ_MEMINFO("MemTotal:"); in setup()
117 swap_total = SAFE_READ_MEMINFO("SwapTotal:"); in setup()
121 commit_limit = SAFE_READ_MEMINFO("CommitLimit:"); in setup()
222 mem_free = SAFE_READ_MEMINFO("MemFree:"); in update_mem()
223 swap_free = SAFE_READ_MEMINFO("SwapFree:"); in update_mem()
231 commit_limit = SAFE_READ_MEMINFO("CommitLimit:"); in update_mem_commit()
232 committed = SAFE_READ_MEMINFO("Committed_AS:"); in update_mem_commit()
Dmin_free_kbytes.c103 memfree = SAFE_READ_MEMINFO("MemFree:"); in test_tune()
104 memtotal = SAFE_READ_MEMINFO("MemTotal:"); in test_tune()
166 memfree = SAFE_READ_MEMINFO("MemFree:"); in eatup_mem()
180 memfree = SAFE_READ_MEMINFO("MemFree:"); in eatup_mem()
192 memfree = SAFE_READ_MEMINFO("MemFree:"); in check_monitor()
217 total_mem = SAFE_READ_MEMINFO("MemTotal:") + SAFE_READ_MEMINFO("SwapTotal:"); in setup()
Dmax_map_count.c165 memfree = SAFE_READ_MEMINFO("CommitLimit:") - SAFE_READ_MEMINFO("Committed_AS:"); in max_map_count_test()
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap05.c105 if (checkproc(SAFE_READ_MEMINFO("HugePages_Total:"), in test_overcommit()
108 if (checkproc(SAFE_READ_MEMINFO("HugePages_Free:"), in test_overcommit()
111 if (checkproc(SAFE_READ_MEMINFO("HugePages_Surp:"), in test_overcommit()
114 if (checkproc(SAFE_READ_MEMINFO("HugePages_Rsvd:"), in test_overcommit()
140 if (checkproc(SAFE_READ_MEMINFO("HugePages_Total:"), in test_overcommit()
143 if (checkproc(SAFE_READ_MEMINFO("HugePages_Free:"), in test_overcommit()
146 if (checkproc(SAFE_READ_MEMINFO("HugePages_Surp:"), in test_overcommit()
149 if (checkproc(SAFE_READ_MEMINFO("HugePages_Rsvd:"), in test_overcommit()
197 hugepagesize = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugemmap01.c62 beforetest = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugemmap()
64 page_sz = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in test_hugemmap()
78 aftertest = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugemmap()
Dhugemmap04.c68 freepages = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugemmap()
71 huge_pagesize = SAFE_READ_MEMINFO("Hugepagesize:"); in test_hugemmap()
96 aftertest = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugemmap()
Dhugemmap06.c56 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
60 if (hugepages * SAFE_READ_MEMINFO("Hugepagesize:") > SAFE_READ_MEMINFO("MemTotal:")) in setup()
Dhugemmap02.c71 map_sz = SAFE_READ_MEMINFO("Hugepagesize:") * 1024 * 2; in test_hugemmap()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat04.c47 huge_free = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugeshmat()
49 huge_free2 = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugeshmat()
89 mem_total = SAFE_READ_MEMINFO("MemTotal:"); in setup()
100 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmat05.c51 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmat03.c96 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmat02.c101 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmat01.c176 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
/external/ltp/testcases/kernel/mem/thp/
Dthp02.c112 hps = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
115 memfree = (SAFE_READ_MEMINFO("MemFree:") * 1024 + in setup()
116 SAFE_READ_MEMINFO("Cached:") * 1024); in setup()
Dthp03.c87 hugepage_size = SAFE_READ_MEMINFO("Hugepagesize:") * KB; in setup()
/external/ltp/testcases/kernel/mem/hugetlb/lib/
Dhugetlb.c72 mem_avail = SAFE_READ_MEMINFO("MemFree:"); in limit_hugepages()
75 max_hpages = mem_avail / SAFE_READ_MEMINFO("Hugepagesize:"); in limit_hugepages()
/external/ltp/include/
Dtst_safe_file_ops.h41 #define SAFE_READ_MEMINFO(item) \ macro
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget01.c76 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmget05.c87 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmget03.c77 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmget02.c94 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/
Dhugeshmdt01.c141 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl02.c101 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmctl03.c126 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()

12