/third_party/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise06.c | 90 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/ |
D | min_free_kbytes.c | 103 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()
|
D | overcommit_memory.c | 105 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()
|
D | max_map_count.c | 162 memfree = SAFE_READ_MEMINFO("CommitLimit:") - SAFE_READ_MEMINFO("Committed_AS:"); in max_map_count_test()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap05.c | 100 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()
|
D | hugemmap01.c | 44 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()
|
D | hugemmap04.c | 50 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/ |
D | hugeshmat04.c | 37 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()
|
D | hugeshmat03.c | 75 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
|
D | hugeshmat02.c | 80 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
|
D | hugeshmat05.c | 42 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
|
/third_party/ltp/lib/ |
D | tst_hugepage.c | 20 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()
|
D | tst_memutils.c | 91 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/ |
D | thp02.c | 108 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()
|
D | thp03.c | 87 hugepage_size = SAFE_READ_MEMINFO("Hugepagesize:") * KB; in setup()
|
/third_party/ltp/testcases/kernel/mem/swapping/ |
D | swapping01.c | 93 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/ |
D | perf_event_open03.c | 49 diff = SAFE_READ_MEMINFO("MemAvailable:"); in run() 55 diff -= SAFE_READ_MEMINFO("MemAvailable:"); in run()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmget/ |
D | hugeshmget01.c | 55 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
|
D | hugeshmget05.c | 67 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
|
D | hugeshmget03.c | 55 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
|
D | hugeshmget02.c | 73 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/ |
D | hugeshmdt01.c | 120 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
|
/third_party/ltp/include/ |
D | tst_safe_file_ops.h | 25 #define SAFE_READ_MEMINFO(item) \ macro
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
D | hugeshmctl02.c | 78 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
|
D | hugeshmctl03.c | 107 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
|