Home
last modified time | relevance | path

Searched refs:tst_hugepages (Results 1 – 24 of 24) sorted by relevance

/third_party/ltp/lib/
Dtst_hugepage.c11 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/
Dhugeshmget01.c52 if (tst_hugepages == 0) in setup()
57 shm_size = hpage_size * tst_hugepages / 2; in setup()
Dhugeshmget05.c64 if (tst_hugepages == 0) in setup()
69 shm_size = hpage_size * tst_hugepages / 2; in setup()
Dhugeshmget03.c49 if (tst_hugepages == 0) in setup()
53 SAFE_FILE_PRINTF(PATH_SHMMNI, "%ld", tst_hugepages / 2); in setup()
Dhugeshmget02.c70 if (tst_hugepages == 0) in setup()
75 shm_size = hpage_size * tst_hugepages / 2; in setup()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat03.c72 if (tst_hugepages == 0) in setup()
77 shm_size = hpage_size * tst_hugepages / 2; in setup()
Dhugeshmat02.c77 if (tst_hugepages == 0) in setup()
82 shm_size = hpage_size * tst_hugepages / 2; in setup()
Dhugeshmat01.c152 if (tst_hugepages == 0) in setup()
157 shm_size = hpage_size * tst_hugepages / 2; in setup()
Dhugeshmat04.c86 if (tst_hugepages == 0) in setup()
105 if (tst_hugepages != (unsigned long)hugepages) in setup()
Dhugeshmat05.c38 if (tst_hugepages != test.request_hugepages) in setup()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/
Dhugeshmdt01.c117 if (tst_hugepages == 0) in setup()
122 shm_size = hpage_size * tst_hugepages / 2; in setup()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl02.c75 if (tst_hugepages == 0) in setup()
80 shm_size = hpage_size * (tst_hugepages / 2); in setup()
Dhugeshmctl03.c104 if (tst_hugepages == 0) in setup()
109 shm_size = hpage_size * tst_hugepages / 2; in setup()
Dhugeshmctl01.c286 if (tst_hugepages == 0) in setup()
291 shm_size = hpage_size * tst_hugepages / 2; in setup()
/third_party/ltp/include/
Dtst_hugepage.h35 extern unsigned long tst_hugepages;
/third_party/ltp/testcases/kernel/syscalls/pkeys/
Dpkey01.c55 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/
Dtest20.c23 tst_res(TINFO, "tst_hugepages = %lu", tst_hugepages); in do_test()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap01.c74 if (tst_hugepages == 0) in setup()
Dhugemmap04.c92 if (tst_hugepages == 0) in setup()
Dhugemmap06.c42 if (tst_hugepages != test.request_hugepages) in setup()
Dhugemmap02.c121 if (tst_hugepages == 0) in setup()
Dhugemmap05.c188 if (tst_hugepages != NR_HPAGES) in setup()
/third_party/ltp/testcases/kernel/syscalls/futex/
Dfutex_wake04.c51 if (tst_hugepages == 0) in setup()
/third_party/ltp/doc/
Dc-test-api.txt1955 '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)