Searched refs:tst_hugepages (Results 1 – 24 of 24) sorted by relevance
/third_party/ltp/lib/ |
D | tst_hugepage.c | 11 unsigned long tst_hugepages; variable 28 tst_hugepages = 0; in tst_request_hugepages() 33 tst_hugepages = SAFE_STRTOL(nr_opt, 1, LONG_MAX); in tst_request_hugepages() 35 tst_hugepages = hpages; in tst_request_hugepages() 38 tst_hugepages = 0; in tst_request_hugepages() 45 if (tst_hugepages > max_hpages) { in tst_request_hugepages() 48 tst_hugepages, max_hpages); in tst_request_hugepages() 49 tst_hugepages = max_hpages * 0.8; in tst_request_hugepages() 51 if (tst_hugepages < 1) in tst_request_hugepages() 57 SAFE_FILE_PRINTF(PATH_NR_HPAGES, "%lu", tst_hugepages); in tst_request_hugepages() [all …]
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmget/ |
D | hugeshmget01.c | 52 if (tst_hugepages == 0) in setup() 57 shm_size = hpage_size * tst_hugepages / 2; in setup()
|
D | hugeshmget05.c | 64 if (tst_hugepages == 0) in setup() 69 shm_size = hpage_size * tst_hugepages / 2; in setup()
|
D | hugeshmget03.c | 49 if (tst_hugepages == 0) in setup() 53 SAFE_FILE_PRINTF(PATH_SHMMNI, "%ld", tst_hugepages / 2); in setup()
|
D | hugeshmget02.c | 70 if (tst_hugepages == 0) in setup() 75 shm_size = hpage_size * tst_hugepages / 2; in setup()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat03.c | 72 if (tst_hugepages == 0) in setup() 77 shm_size = hpage_size * tst_hugepages / 2; in setup()
|
D | hugeshmat02.c | 77 if (tst_hugepages == 0) in setup() 82 shm_size = hpage_size * tst_hugepages / 2; in setup()
|
D | hugeshmat01.c | 152 if (tst_hugepages == 0) in setup() 157 shm_size = hpage_size * tst_hugepages / 2; in setup()
|
D | hugeshmat04.c | 86 if (tst_hugepages == 0) in setup() 105 if (tst_hugepages != (unsigned long)hugepages) in setup()
|
D | hugeshmat05.c | 38 if (tst_hugepages != test.request_hugepages) in setup()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/ |
D | hugeshmdt01.c | 117 if (tst_hugepages == 0) in setup() 122 shm_size = hpage_size * tst_hugepages / 2; in setup()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
D | hugeshmctl02.c | 75 if (tst_hugepages == 0) in setup() 80 shm_size = hpage_size * (tst_hugepages / 2); in setup()
|
D | hugeshmctl03.c | 104 if (tst_hugepages == 0) in setup() 109 shm_size = hpage_size * tst_hugepages / 2; in setup()
|
D | hugeshmctl01.c | 286 if (tst_hugepages == 0) in setup() 291 shm_size = hpage_size * tst_hugepages / 2; in setup()
|
/third_party/ltp/include/ |
D | tst_hugepage.h | 35 extern unsigned long tst_hugepages;
|
/third_party/ltp/testcases/kernel/syscalls/pkeys/ |
D | pkey01.c | 55 if (tst_hugepages == test.request_hugepages) in setup() 135 if (!tst_hugepages && (mpa->flags & MAP_HUGETLB)) { in pkey_test()
|
/third_party/ltp/lib/newlib_tests/ |
D | test20.c | 23 tst_res(TINFO, "tst_hugepages = %lu", tst_hugepages); in do_test()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap01.c | 74 if (tst_hugepages == 0) in setup()
|
D | hugemmap04.c | 92 if (tst_hugepages == 0) in setup()
|
D | hugemmap06.c | 42 if (tst_hugepages != test.request_hugepages) in setup()
|
D | hugemmap02.c | 121 if (tst_hugepages == 0) in setup()
|
D | hugemmap05.c | 188 if (tst_hugepages != NR_HPAGES) in setup()
|
/third_party/ltp/testcases/kernel/syscalls/futex/ |
D | futex_wake04.c | 51 if (tst_hugepages == 0) in setup()
|
/third_party/ltp/doc/ |
D | c-test-api.txt | 1955 'tst_hugepages'. For the system without hugetlb supporting, variable 1956 'tst_hugepages' will be set to 0. If the hugepage number needs to be set to 0 1969 if (tst_hugepages == test.request_hugepages) 1996 if (tst_hugepages != test.requested_hugepages)
|