Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/mem/swapping/
Dswapping01.c83 swap_free_init = SAFE_READ_MEMINFO("SwapFree:"); in init_meminfo()
86 mem_available_init = SAFE_READ_MEMINFO("MemFree:") in init_meminfo()
87 + SAFE_READ_MEMINFO("Cached:"); in init_meminfo()
130 swap_free_now = SAFE_READ_MEMINFO("SwapFree:"); in check_swapping()
132 if (abs(swap_free_now - SAFE_READ_MEMINFO("SwapFree:")) < 512) in check_swapping()
138 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()
224 mem_free = SAFE_READ_MEMINFO("MemFree:"); in update_mem()
225 swap_free = SAFE_READ_MEMINFO("SwapFree:"); in update_mem()
233 commit_limit = SAFE_READ_MEMINFO("CommitLimit:"); in update_mem_commit()
234 committed = SAFE_READ_MEMINFO("Committed_AS:"); in update_mem_commit()
Dmin_free_kbytes.c102 memfree = SAFE_READ_MEMINFO("MemFree:"); in test_tune()
103 memtotal = SAFE_READ_MEMINFO("MemTotal:"); in test_tune()
165 memfree = SAFE_READ_MEMINFO("MemFree:"); in eatup_mem()
179 memfree = SAFE_READ_MEMINFO("MemFree:"); in eatup_mem()
191 memfree = SAFE_READ_MEMINFO("MemFree:"); in check_monitor()
216 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.c117 if (checkproc(SAFE_READ_MEMINFO("HugePages_Total:"), in test_overcommit()
120 if (checkproc(SAFE_READ_MEMINFO("HugePages_Free:"), in test_overcommit()
123 if (checkproc(SAFE_READ_MEMINFO("HugePages_Surp:"), in test_overcommit()
126 if (checkproc(SAFE_READ_MEMINFO("HugePages_Rsvd:"), in test_overcommit()
152 if (checkproc(SAFE_READ_MEMINFO("HugePages_Total:"), in test_overcommit()
155 if (checkproc(SAFE_READ_MEMINFO("HugePages_Free:"), in test_overcommit()
158 if (checkproc(SAFE_READ_MEMINFO("HugePages_Surp:"), in test_overcommit()
161 if (checkproc(SAFE_READ_MEMINFO("HugePages_Rsvd:"), in test_overcommit()
209 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.c67 freepages = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugemmap()
70 huge_pagesize = SAFE_READ_MEMINFO("Hugepagesize:"); in test_hugemmap()
95 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.c70 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()
Dhugeshmat03.c95 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmat05.c51 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmat02.c99 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmat01.c175 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
/external/ltp/testcases/kernel/mem/thp/
Dthp03.c87 hugepage_size = SAFE_READ_MEMINFO("Hugepagesize:") * KB; in setup()
Dthp02.c96 hps = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
/external/ltp/include/
Dtst_safe_file_ops.h41 #define SAFE_READ_MEMINFO(item) \ macro
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget01.c75 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmget05.c86 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmget03.c76 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmget02.c93 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/
Dhugeshmdt01.c140 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl02.c100 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmctl03.c125 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmctl01.c319 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()