Searched refs:hugetlbsize (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/mm/ |
H A D | cow.c | 998 static void run_with_hugetlb(test_fn fn, const char *desc, size_t hugetlbsize) in run_with_hugetlb() argument 1004 hugetlbsize / 1024); in run_with_hugetlb() 1006 flags |= __builtin_ctzll(hugetlbsize) << MAP_HUGE_SHIFT; in run_with_hugetlb() 1008 mem = mmap(NULL, hugetlbsize, PROT_READ | PROT_WRITE, flags, -1, 0); in run_with_hugetlb() 1015 memset(mem, 1, hugetlbsize); in run_with_hugetlb() 1021 dummy = mmap(NULL, hugetlbsize, PROT_READ | PROT_WRITE, flags, -1, 0); in run_with_hugetlb() 1026 munmap(dummy, hugetlbsize); in run_with_hugetlb() 1028 fn(mem, hugetlbsize, true); in run_with_hugetlb() 1030 munmap(mem, hugetlbsize); in run_with_hugetlb() 1656 size_t hugetlbsize) in run_with_memfd_hugetlb() argument [all …]
|
H A D | gup_longterm.c | 308 size_t hugetlbsize) in run_with_memfd_hugetlb() 314 hugetlbsize / 1024); in run_with_memfd_hugetlb() 316 flags |= __builtin_ctzll(hugetlbsize) << MFD_HUGE_SHIFT; in run_with_memfd_hugetlb() 324 fn(fd, hugetlbsize); 300 run_with_memfd_hugetlb(test_fn fn,const char * desc,size_t hugetlbsize) run_with_memfd_hugetlb() argument
|