Lines Matching refs:pagesize
28 static size_t pagesize; variable
94 mem = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE|MAP_ANON, -1, 0); in test_ptrace_write()
119 munmap(mem, pagesize); in test_ptrace_write()
148 if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) { in test_ptrace_write_thp()
164 mem = mmap(NULL, pagesize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, in test_page_migration()
172 memset(mem, 1, pagesize); in test_page_migration()
173 if (mprotect(mem, pagesize, PROT_READ)) { in test_page_migration()
179 if (syscall(__NR_mbind, mem, pagesize, MPOL_LOCAL, NULL, 0x7fful, in test_page_migration()
187 munmap(mem, pagesize); in test_page_migration()
205 memset(mem, 1, pagesize); in test_page_migration_thp()
212 if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) { in test_page_migration_thp()
244 memset(mem, 1, pagesize); in test_pte_mapped_thp()
251 if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) { in test_pte_mapped_thp()
257 if (mprotect(mem + thpsize - pagesize, pagesize, in test_pte_mapped_thp()
279 src = malloc(pagesize); in test_uffdio_copy()
280 memset(src, 1, pagesize); in test_uffdio_copy()
281 dst = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE|MAP_ANON, -1, 0); in test_uffdio_copy()
301 uffdio_register.range.len = pagesize; in test_uffdio_copy()
311 uffdio_copy.len = pagesize; in test_uffdio_copy()
322 munmap(dst, pagesize); in test_uffdio_copy()
331 pagesize = getpagesize(); in main()