Home
last modified time | relevance | path

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

12

/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c90 SAFE_READ_MEMINFO("SwapTotal:") - SAFE_READ_MEMINFO("SwapFree:") - init_swap); in meminfo_diag()
92 SAFE_READ_MEMINFO("SwapCached:") - init_swap_cached); in meminfo_diag()
94 SAFE_READ_MEMINFO("Cached:") - init_cached); in meminfo_diag()
141 init_swap = SAFE_READ_MEMINFO("SwapTotal:") - SAFE_READ_MEMINFO("SwapFree:"); in setup()
142 init_swap_cached = SAFE_READ_MEMINFO("SwapCached:"); in setup()
143 init_cached = SAFE_READ_MEMINFO("Cached:"); in setup()
/third_party/ltp/testcases/kernel/mem/tunable/
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()
Dovercommit_memory.c105 mem_total = SAFE_READ_MEMINFO("MemTotal:"); in setup()
107 swap_total = SAFE_READ_MEMINFO("SwapTotal:"); in setup()
111 commit_limit = SAFE_READ_MEMINFO("CommitLimit:"); in setup()
215 mem_free = SAFE_READ_MEMINFO("MemFree:"); in update_mem()
216 swap_free = SAFE_READ_MEMINFO("SwapFree:"); in update_mem()
224 commit_limit = SAFE_READ_MEMINFO("CommitLimit:"); in update_mem_commit()
225 committed = SAFE_READ_MEMINFO("Committed_AS:"); in update_mem_commit()
Dmax_map_count.c162 memfree = SAFE_READ_MEMINFO("CommitLimit:") - SAFE_READ_MEMINFO("Committed_AS:"); in max_map_count_test()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap05.c100 if (checkproc(SAFE_READ_MEMINFO("HugePages_Total:"), in test_overcommit()
103 if (checkproc(SAFE_READ_MEMINFO("HugePages_Free:"), in test_overcommit()
106 if (checkproc(SAFE_READ_MEMINFO("HugePages_Surp:"), in test_overcommit()
109 if (checkproc(SAFE_READ_MEMINFO("HugePages_Rsvd:"), in test_overcommit()
135 if (checkproc(SAFE_READ_MEMINFO("HugePages_Total:"), in test_overcommit()
138 if (checkproc(SAFE_READ_MEMINFO("HugePages_Free:"), in test_overcommit()
141 if (checkproc(SAFE_READ_MEMINFO("HugePages_Surp:"), in test_overcommit()
144 if (checkproc(SAFE_READ_MEMINFO("HugePages_Rsvd:"), in test_overcommit()
191 hugepagesize = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugemmap01.c44 beforetest = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugemmap()
46 page_sz = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in test_hugemmap()
60 aftertest = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugemmap()
Dhugemmap04.c50 freepages = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugemmap()
53 huge_pagesize = SAFE_READ_MEMINFO("Hugepagesize:"); in test_hugemmap()
78 aftertest = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugemmap()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat04.c37 huge_free = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugeshmat()
39 huge_free2 = SAFE_READ_MEMINFO("HugePages_Free:"); in test_hugeshmat()
90 mem_total = SAFE_READ_MEMINFO("MemTotal:"); in setup()
101 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmat03.c75 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmat02.c80 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmat05.c42 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
/third_party/ltp/lib/
Dtst_hugepage.c20 return SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in tst_get_hugepage_size()
43 max_hpages = SAFE_READ_MEMINFO("MemFree:") / SAFE_READ_MEMINFO("Hugepagesize:"); in tst_request_hugepages()
Dtst_memutils.c91 mem_available = SAFE_READ_MEMINFO("MemFree:") in tst_available_mem()
92 + SAFE_READ_MEMINFO("Cached:"); in tst_available_mem()
/third_party/ltp/testcases/kernel/mem/thp/
Dthp02.c108 hps = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
111 memfree = (SAFE_READ_MEMINFO("MemFree:") * 1024 + in setup()
112 SAFE_READ_MEMINFO("Cached:") * 1024); in setup()
Dthp03.c87 hugepage_size = SAFE_READ_MEMINFO("Hugepagesize:") * KB; in setup()
/third_party/ltp/testcases/kernel/mem/swapping/
Dswapping01.c93 swap_free_init = SAFE_READ_MEMINFO("SwapFree:"); in init_meminfo()
140 swap_free_now = SAFE_READ_MEMINFO("SwapFree:"); in check_swapping()
142 if (labs(swap_free_now - SAFE_READ_MEMINFO("SwapFree:")) < 10) in check_swapping()
/third_party/ltp/testcases/kernel/syscalls/perf_event_open/
Dperf_event_open03.c49 diff = SAFE_READ_MEMINFO("MemAvailable:"); in run()
55 diff -= SAFE_READ_MEMINFO("MemAvailable:"); in run()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget01.c55 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmget05.c67 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmget03.c55 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmget02.c73 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/
Dhugeshmdt01.c120 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
/third_party/ltp/include/
Dtst_safe_file_ops.h25 #define SAFE_READ_MEMINFO(item) \ macro
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl02.c78 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
Dhugeshmctl03.c107 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()

12