Home
last modified time | relevance | path

Searched refs:mmap_mem (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/mm/
H A Dmkdirty.c65 char *mem, *mmap_mem; in mmap_thp_range() local
67 mmap_mem = mmap(NULL, mmap_size, prot, MAP_PRIVATE|MAP_ANON, in mmap_thp_range()
69 if (mmap_mem == MAP_FAILED) { in mmap_thp_range()
73 mem = (char *)(((uintptr_t)mmap_mem + thpsize) & ~(thpsize - 1)); in mmap_thp_range()
77 munmap(mmap_mem, mmap_size); in mmap_thp_range()
81 *_mmap_mem = mmap_mem; in mmap_thp_range()
124 char *mem, *mmap_mem; in test_ptrace_write_thp() local
131 mem = mmap_thp_range(PROT_READ, &mmap_mem, &mmap_size); in test_ptrace_write_thp()
155 munmap(mmap_mem, mmap_size); in test_ptrace_write_thp()
192 char *mem, *mmap_mem; in test_page_migration_thp() local
[all …]
H A Dcow.c801 char *mem, *mmap_mem, *tmp, *mremap_mem = MAP_FAILED; in do_run_with_thp()
807 mmap_mem = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, in do_run_with_thp()
809 if (mmap_mem == MAP_FAILED) { in do_run_with_thp()
815 mem = (char *)(((uintptr_t)mmap_mem + thpsize) & ~(thpsize - 1)); in do_run_with_thp()
937 munmap(mmap_mem, mmap_size); in run_with_pte_mapped_thp_swap()
1503 char *mem, *smem, *mmap_mem, *mmap_smem, tmp; in run_with_huge_zeropage()
1516 mmap_mem = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, in run_with_huge_zeropage()
1518 if (mmap_mem == MAP_FAILED) { in run_with_huge_zeropage()
1530 mem = (char *)(((uintptr_t)mmap_mem + pmdsize) & ~(pmdsize - 1)); in run_with_memfd()
1555 munmap(mmap_mem, mmap_siz in run_with_memfd()
773 char *mem, *mmap_mem, *tmp, *mremap_mem = MAP_FAILED; do_run_with_thp() local
1467 char *mem, *smem, *mmap_mem, *mmap_smem, tmp; run_with_huge_zeropage() local
[all...]
/linux/drivers/char/
H A Dmem.c343 static int mmap_mem(struct file *file, struct vm_area_struct *vma) in mmap_mem() function
640 .mmap = mmap_mem,
/linux/tools/lib/bpf/
H A Dlibbpf.c13060 perf_event_read_simple(void *mmap_mem, size_t mmap_size, size_t page_size, in perf_event_read_simple() argument
13064 struct perf_event_mmap_page *header = mmap_mem; in perf_event_read_simple()