Home
last modified time | relevance | path

Searched refs:thp_size (Results 1 – 2 of 2) sorted by relevance

/third_party/ltp/testcases/kernel/mem/thp/
Dthp04.c37 static size_t thp_size; variable
47 for (i = 0; i < 16; i++, baseaddr += thp_size) { in alloc_zero_page()
48 ret = mmap(baseaddr, thp_size, PROT_READ, in alloc_zero_page()
52 TEST(madvise(ret, thp_size, MADV_HUGEPAGE)); in alloc_zero_page()
68 SAFE_MUNMAP(ret, thp_size); in alloc_zero_page()
79 thp_size = tst_get_hugepage_size(); in setup()
81 if (!thp_size) in setup()
84 write_thp = alloc_zero_page((void *)thp_size); in setup()
86 for (i = 0; i < thp_size; i++) { in setup()
92 read_thp = alloc_zero_page(write_thp + 2 * thp_size); in setup()
[all …]
/third_party/ltp/testcases/kernel/mce-test/tsrc/
Dttranshuge.c70 #define THP_MASK(thp_size) ((unsigned long)(thp_size - 1)) argument