Home
last modified time | relevance | path

Searched refs:munmap (Results 1 - 25 of 249) sorted by relevance

12345678910

/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dmkdirty.c77 munmap(mmap_mem, mmap_size); in mmap_thp_range()
103 goto munmap; in test_ptrace_write()
114 goto munmap; in test_ptrace_write()
118 munmap: in test_ptrace_write()
119 munmap(mem, pagesize); in test_ptrace_write()
144 goto munmap; in test_ptrace_write_thp()
150 goto munmap; in test_ptrace_write_thp()
154 munmap: in test_ptrace_write_thp()
155 munmap(mmap_mem, mmap_size); in test_ptrace_write_thp()
175 goto munmap; in test_page_migration()
[all...]
H A Dmremap_dontunmap.c58 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap()
62 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap()
121 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple()
123 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple()
153 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem()
172 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem()
174 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_shmem()
218 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_fixed()
220 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_fixed()
268 BUG_ON(munmap(dest_mappin in mremap_dontunmap_partial_mapping()
[all...]
H A Dcow.c147 if (munmap(mem, size) < 0) in child_vmsplice_memcmp_fn()
302 if (munmap(mem, size) < 0) { in do_test_vmsplice_in_parent()
303 ksft_test_result_fail("munmap() failed\n"); in do_test_vmsplice_in_parent()
695 goto munmap; in do_run_with_base_page()
705 goto munmap; in do_run_with_base_page()
710 munmap: in do_run_with_base_page()
711 munmap(mem, pagesize); in do_run_with_base_page()
758 goto munmap; in do_run_with_thp()
768 goto munmap; in do_run_with_thp()
786 goto munmap; in do_run_with_thp()
[all...]
H A Dmadv_populate.c48 munmap(addr, pagesize); in sense_support()
69 munmap(addr, SIZE); in test_prot_read()
90 munmap(addr, SIZE); in test_prot_write()
104 ret = munmap(addr + pagesize, pagesize); in test_holes()
106 ksft_exit_fail_msg("munmap failed\n"); in test_holes()
132 munmap(addr, SIZE); in test_holes()
182 munmap(addr, SIZE); in test_populate_read()
204 munmap(addr, SIZE); in test_populate_write()
264 munmap(addr, SIZE); in test_softdirty()
H A Dhugetlb-madvise.c123 if (munmap(addr, huge_page_size) || in main()
124 munmap(addr + (NR_HUGE_PAGES + 1) * huge_page_size, in main()
126 perror("munmap"); in main()
152 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
189 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
214 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
273 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
313 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
381 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
382 (void)munmap(addr in main()
[all...]
H A Dksm_tests.c211 munmap(map_ptr, map_size); in allocate_memory()
369 munmap(map_ptr, page_size * page_count); in check_ksm_merge()
377 munmap(map_ptr, page_size * page_count); in check_ksm_merge()
411 munmap(map_ptr, page_size * page_count); in check_ksm_unmerge()
417 munmap(map_ptr, page_size * page_count); in check_ksm_unmerge()
456 munmap(map_ptr, page_size * page_count); in check_ksm_zero_page_merge()
461 munmap(map_ptr, page_size * page_count); in check_ksm_zero_page_merge()
609 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time()
614 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time()
650 munmap(map_pt in ksm_merge_time()
[all...]
H A Dmremap_test.c86 munmap(remap_addr, size); in is_remap_region_valid()
169 munmap(start + page_size, page_size); in mremap_expand_merge()
173 munmap(start, page_size); in mremap_expand_merge()
174 munmap(start + 2 * page_size, page_size); in mremap_expand_merge()
179 munmap(start, 3 * page_size); in mremap_expand_merge()
209 munmap(start + 2 * page_size, page_size); in mremap_expand_merge_offset()
213 munmap(start, 2 * page_size); in mremap_expand_merge_offset()
218 munmap(start, 3 * page_size); in mremap_expand_merge_offset()
262 munmap(src_addr, c.region_size); in get_source_mapping()
361 munmap(dest_add in remap_region()
[all...]
H A Dksm_functional_tests.c217 munmap(map, size); in mmap_and_merge_range()
240 munmap(map, size); in test_unmerge()
304 munmap(map, size); in test_unmerge_zero_pages()
332 munmap(map, size); in test_unmerge_discarded()
394 munmap(map, size); in test_unmerge_uffd_wp()
501 munmap(map, size); in test_prctl_unmerge()
534 munmap(map, size); in test_prot_none()
H A Dmlock2-tests.c224 munmap(map, 2 * page_size); in test_mlock_lock()
290 munmap(map, 2 * page_size); in test_mlock_onfault()
326 munmap(map, 2 * page_size); in test_lock_onfault_of_present()
361 munmap(map, 2 * page_size); in test_munlockall()
403 munmap(map, 2 * page_size); in test_munlockall()
491 munmap(map, 3 * page_size); in test_vma_management()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dmmap.c43 munmap(tmp1, 4096); in test_mmap()
126 err = munmap(map_mmaped, map_sz); in test_mmap()
128 if (CHECK(err, "data_map_munmap", "data_map munmap failed: %d\n", errno)) in test_mmap()
154 err = munmap(p, map_sz); in test_mmap()
169 munmap(tmp1, map_sz); in test_mmap()
195 munmap(tmp0, 4 * page_size); in test_mmap()
200 err = munmap(tmp1 + page_size, page_size); in test_mmap()
202 munmap(tmp1, 4 * page_size); in test_mmap()
210 munmap(tmp1, page_size); in test_mmap()
211 munmap(tmp in test_mmap()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dmmap.c57 munmap(tmp1, page_size); in test_mmap()
140 err = munmap(map_mmaped, map_sz); in test_mmap()
142 if (CHECK(err, "data_map_munmap", "data_map munmap failed: %d\n", errno)) in test_mmap()
168 err = munmap(p, map_sz); in test_mmap()
183 munmap(tmp1, map_sz); in test_mmap()
209 munmap(tmp0, 4 * page_size); in test_mmap()
214 err = munmap(tmp1 + page_size, page_size); in test_mmap()
216 munmap(tmp1, 4 * page_size); in test_mmap()
224 munmap(tmp1, page_size); in test_mmap()
225 munmap(tmp in test_mmap()
[all...]
/kernel/liteos_a/testsuites/unittest/basic/mem/vm/smoke/
H A Dmmap_test_007.cpp65 ret = munmap(prev, len); in Testcase()
67 ret = munmap(next, len); in Testcase()
72 ret = munmap(mem, len); in Testcase()
76 ret = munmap(mem, len); in Testcase()
78 ret = munmap(prev, len); in Testcase()
82 ret = munmap(prev, len); in Testcase()
84 ret = munmap(next, len); in Testcase()
H A Dmmap_test_003.cpp68 ret = munmap(p1, pageSize); in Testcase()
70 ret = munmap(p2, pageSize); in Testcase()
72 ret = munmap(p3, pageSize); in Testcase()
H A Dmmap_test_004.cpp68 ret = munmap(p1, pageSize); in Testcase()
70 ret = munmap(p2, pageSize); in Testcase()
72 ret = munmap(p3, pageSize); in Testcase()
H A Dmmap_test_010.cpp47 ret = munmap(ptr, MMAP_SIZE); in Testcase()
53 ret = munmap(ptr, MMAP_SIZE); in Testcase()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dmremap_dontunmap.c61 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap()
65 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap()
124 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple()
126 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple()
170 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_fixed()
172 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_fixed()
220 BUG_ON(munmap(dest_mapping, 5 * page_size) == -1, in mremap_dontunmap_partial_mapping()
222 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_partial_mapping()
279 BUG_ON(munmap(dest_mapping, 10 * page_size) == -1, in mremap_dontunmap_partial_mapping_overwrite()
281 BUG_ON(munmap(source_mappin in mremap_dontunmap_partial_mapping_overwrite()
[all...]
H A Dkhugepaged.c532 munmap(p, hpage_pmd_size); in alloc_at_fault()
548 munmap(p, hpage_pmd_size); in collapse_full()
562 munmap(p, hpage_pmd_size); in collapse_empty()
578 munmap(p, hpage_pmd_size); in collapse_single_pte_entry()
610 munmap(p, hpage_pmd_size); in collapse_max_ptes_none()
640 munmap(p, hpage_pmd_size); in collapse_swapin_single_pte()
692 munmap(p, hpage_pmd_size); in collapse_max_ptes_swap()
724 munmap(p, hpage_pmd_size); in collapse_single_pte_entry_compound()
756 munmap(p, hpage_pmd_size); in collapse_full_of_compound()
798 munmap(BASE_ADD in collapse_compound_extreme()
[all...]
H A Dmlock2-tests.c225 munmap(map, 2 * page_size); in test_mlock_lock()
291 munmap(map, 2 * page_size); in test_mlock_onfault()
327 munmap(map, 2 * page_size); in test_lock_onfault_of_present()
362 munmap(map, 2 * page_size); in test_munlockall()
404 munmap(map, 2 * page_size); in test_munlockall()
492 munmap(map, 3 * page_size); in test_vma_management()
H A Dmap_fixed_noreplace.c40 if (munmap(addr, size) != 0) { in find_base_addr()
80 if (munmap((void *)addr, 5 * page_size) != 0) { in main()
82 printf("Error: munmap failed!?\n"); in main()
222 if (munmap((void *)addr, size) != 0) { in main()
224 printf("Error: munmap failed!?\n"); in main()
/kernel/liteos_a/testsuites/unittest/basic/exc/full/
H A Dit_test_fexecve_001.cpp88 munmap(p, st.st_size); in TestCase()
96 munmap(p, st.st_size); in TestCase()
102 munmap(p, st.st_size); in TestCase()
107 munmap(p, st.st_size); in TestCase()
/kernel/linux/linux-6.6/tools/testing/selftests/sgx/
H A Dload.c27 munmap((void *)encl->encl_base, encl->encl_size); in encl_delete()
30 munmap(encl->bin, encl->bin_size); in encl_delete()
37 munmap(heap_seg->src, heap_seg->size); in encl_delete()
99 munmap((void *)secs->base, encl->encl_size); in encl_ioc_create()
209 munmap(ptr, PAGE_SIZE); in encl_load()
222 munmap(ptr, PAGE_SIZE); in encl_load()
332 munmap(area, encl->encl_base - (uint64_t)area); in encl_map_area()
333 munmap((void *)(encl->encl_base + encl_size), in encl_map_area()
/kernel/linux/linux-5.10/tools/io_uring/
H A Dsetup.c37 munmap(sq->khead, sq->ring_sz); in io_uring_mmap()
46 munmap(sq->sqes, p->sq_entries * sizeof(struct io_uring_sqe)); in io_uring_mmap()
103 munmap(sq->sqes, *sq->kring_entries * sizeof(struct io_uring_sqe)); in io_uring_queue_exit()
104 munmap(sq->khead, sq->ring_sz); in io_uring_queue_exit()
105 munmap(cq->khead, cq->ring_sz); in io_uring_queue_exit()
/kernel/linux/linux-5.10/tools/testing/selftests/memfd/
H A Dmemfd_test.c258 munmap(p, mfd_def_size); in mfd_assert_read()
271 munmap(p, mfd_def_size); in mfd_assert_read()
290 munmap(p, mfd_def_size); in mfd_assert_read_shared()
324 munmap(p, mfd_def_size); in mfd_assert_fork_private_write()
358 munmap(p, mfd_def_size); in mfd_assert_write()
372 munmap(p, mfd_def_size); in mfd_assert_write()
394 munmap(p, mfd_def_size); in mfd_assert_write()
458 munmap(p, mfd_def_size); in mfd_fail_write()
800 munmap(p, mfd_def_size); in test_seal_future_write()
946 munmap( in test_share_mmap()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/
H A Dhugetlb_vs_thp_test.c25 * munmap here before continuing. munmap() length of in test_body()
28 if (munmap(addr, SIZE)) { in test_body()
29 perror("munmap"); in test_body()
57 munmap(addr, SIZE); in test_body()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/mm/
H A Dhugetlb_vs_thp_test.c25 * munmap here before continuing. munmap() length of in test_body()
28 if (munmap(addr, SIZE)) { in test_body()
29 perror("munmap"); in test_body()
57 munmap(addr, SIZE); in test_body()

Completed in 13 milliseconds

12345678910