Searched refs:hpages (Results 1 - 4 of 4) sorted by relevance
/third_party/ltp/lib/newlib_tests/ |
H A D | test20.c | 16 unsigned long val, hpages; in do_test() local 21 hpages = test.hugepages.number; in do_test() 23 if (val != hpages) in do_test() 24 tst_brk(TBROK, "nr_hugepages = %lu, but expect %lu", val, hpages); in do_test() 29 hpages = tst_reserve_hugepages(&hp); in do_test() 32 if (val != hpages) in do_test() 33 tst_brk(TBROK, "nr_hugepages = %lu, but expect %lu", val, hpages); in do_test()
|
H A D | test_zero_hugepage.c | 16 unsigned long val, hpages; in do_test() local 25 hpages = tst_reserve_hugepages(&hp); in do_test() 27 if (val != hpages) in do_test() 28 tst_brk(TBROK, "nr_hugepages = %lu, but expect %lu", val, hpages); in do_test()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
H A D | hugemmap10.c | 181 static int map_(int s, int hpages, int flags, char *desc, int line) in map_() argument 186 map_size[s] = hpages * hpage_size; in map_() 209 if (hpages + prev_resv > prev_free) in map_() 210 shortfall = hpages - prev_free + prev_resv; in map_() 213 er += hpages; in map_() 221 static int unmap_(int s, int hpages, int flags, char *desc, int line) in unmap_() argument 256 int unused_surplus = MIN(hpages - touched[s], es); in unmap_() 260 er -= hpages - touched[s]; in unmap_() 268 static int touch_(int s, int hpages, int flags, char *desc, int line) in touch_() argument 274 for (c = map_addr[s], nr = hpages; in touch_() [all...] |
H A D | hugemmap05.c | 186 unsigned long hpages; in setup() local 215 SAFE_FILE_SCANF(path, "%lu", &hpages); in setup() 216 if (hpages != size) in setup()
|
Completed in 3 milliseconds