Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/mm/
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 …]
Dcow.c801 char *mem, *mmap_mem, *tmp, *mremap_mem = MAP_FAILED; in do_run_with_thp() local
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 do_run_with_thp()
1503 char *mem, *smem, *mmap_mem, *mmap_smem, tmp; in run_with_huge_zeropage() local
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_huge_zeropage()
1555 munmap(mmap_mem, mmap_size); in run_with_huge_zeropage()
/linux-6.12.1/drivers/char/
Dmem.c343 static int mmap_mem(struct file *file, struct vm_area_struct *vma) in mmap_mem() function
640 .mmap = mmap_mem,
/linux-6.12.1/tools/lib/bpf/
Dlibbpf.c13020 perf_event_read_simple(void *mmap_mem, size_t mmap_size, size_t page_size, in perf_event_read_simple() argument
13024 struct perf_event_mmap_page *header = mmap_mem; in perf_event_read_simple()