Home
last modified time | relevance | path

Searched refs:MAP_FAILED (Results 1 – 25 of 164) sorted by relevance

1234567

/linux-6.6.21/tools/testing/selftests/mm/
Dmremap_dontunmap.c48 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in kernel_support_for_mremap_dontunmap()
55 if (dest_mapping == MAP_FAILED) { in kernel_support_for_mremap_dontunmap()
102 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple()
110 BUG_ON(dest_mapping == MAP_FAILED, "mremap"); in mremap_dontunmap_simple()
141 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple_shmem()
151 if (dest_mapping == MAP_FAILED && errno == EINVAL) { in mremap_dontunmap_simple_shmem()
158 BUG_ON(dest_mapping == MAP_FAILED, "mremap"); in mremap_dontunmap_simple_shmem()
190 BUG_ON(dest_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple_fixed()
196 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple_fixed()
203 BUG_ON(remapped_mapping == MAP_FAILED, "mremap"); in mremap_dontunmap_simple_fixed()
[all …]
Dmap_fixed_noreplace.c31 if (addr == MAP_FAILED) { in find_base_addr()
69 if (p == MAP_FAILED) { in main()
89 if (p == MAP_FAILED) { in main()
109 if (p != MAP_FAILED) { in main()
130 if (p != MAP_FAILED) { in main()
150 if (p != MAP_FAILED) { in main()
170 if (p != MAP_FAILED) { in main()
190 if (p == MAP_FAILED) { in main()
210 if (p == MAP_FAILED) { in main()
Dmdwe_test.c103 if (self->p && self->p != MAP_FAILED) in FIXTURE_TEARDOWN()
110 EXPECT_NE(self->p, MAP_FAILED); in TEST_F()
117 EXPECT_EQ(self->p, MAP_FAILED); in TEST_F()
119 EXPECT_NE(self->p, MAP_FAILED); in TEST_F()
128 ASSERT_NE(self->p, MAP_FAILED); in TEST_F()
139 ASSERT_NE(self->p, MAP_FAILED); in TEST_F()
154 ASSERT_NE(self->p, MAP_FAILED); in TEST_F()
169 ASSERT_NE(self->p, MAP_FAILED); in TEST_F()
187 ASSERT_NE(self->p, MAP_FAILED); in TEST_F()
Dmkdirty.c69 if (mmap_mem == MAP_FAILED) { in mmap_thp_range()
71 return MAP_FAILED; in mmap_thp_range()
78 return MAP_FAILED; in mmap_thp_range()
95 if (mem == MAP_FAILED) { in test_ptrace_write()
132 if (mem == MAP_FAILED) in test_ptrace_write_thp()
166 if (mem == MAP_FAILED) { in test_page_migration()
198 if (mem == MAP_FAILED) in test_page_migration_thp()
237 if (mem == MAP_FAILED) in test_pte_mapped_thp()
282 if (dst == MAP_FAILED) { in test_uffdio_copy()
Dhugepage-mremap.c89 if (addr == MAP_FAILED) { in register_region_with_uffd()
136 if (haddr == MAP_FAILED) { in main()
146 if (daddr == MAP_FAILED) { in main()
155 if (vaddr == MAP_FAILED) { in main()
164 if (addr == MAP_FAILED) { in main()
177 if (addr != MAP_FAILED) { in main()
Dksm_functional_tests.c167 if (map == MAP_FAILED) { in mmap_and_merge_range()
169 return MAP_FAILED; in mmap_and_merge_range()
218 return MAP_FAILED; in mmap_and_merge_range()
229 if (map == MAP_FAILED) in test_unmerge()
267 if (map == MAP_FAILED) in test_unmerge_zero_pages()
315 if (map == MAP_FAILED) in test_unmerge_discarded()
347 if (map == MAP_FAILED) in test_unmerge_uffd_wp()
490 if (map == MAP_FAILED) in test_prctl_unmerge()
513 if (map == MAP_FAILED) in test_prot_none()
Dhugetlb-madvise.c119 if (addr == MAP_FAILED) { in main()
161 if (addr == MAP_FAILED) { in main()
199 if (addr == MAP_FAILED) { in main()
228 if (addr == MAP_FAILED) { in main()
287 if (addr == MAP_FAILED) { in main()
327 if (addr == MAP_FAILED) { in main()
339 if (addr2 == MAP_FAILED) { in main()
Dcow.c686 if (mem == MAP_FAILED) { in do_run_with_base_page()
739 char *mem, *mmap_mem, *tmp, *mremap_mem = MAP_FAILED; in do_run_with_thp()
747 if (mmap_mem == MAP_FAILED) { in do_run_with_thp()
815 if (mem == MAP_FAILED) { in do_run_with_thp()
874 if (mremap_mem != MAP_FAILED) in do_run_with_thp()
937 if (mem == MAP_FAILED) { in run_with_hugetlb()
950 if (dummy == MAP_FAILED) { in run_with_hugetlb()
1386 if (mem == MAP_FAILED) { in run_with_zeropage()
1392 if (mem == MAP_FAILED) { in run_with_zeropage()
1404 if (smem != MAP_FAILED) in run_with_zeropage()
[all …]
Dmadv_populate.c59 if (addr == MAP_FAILED) in test_prot_read()
80 if (addr == MAP_FAILED) in test_prot_write()
102 if (addr == MAP_FAILED) in test_holes()
172 if (addr == MAP_FAILED) in test_populate_read()
194 if (addr == MAP_FAILED) in test_populate_write()
244 if (addr == MAP_FAILED) in test_softdirty()
Dvirtual_address_range.c97 if (ptr == MAP_FAILED) in validate_lower_address_hint()
114 if (ptr[i] == MAP_FAILED) { in main()
133 if (hptr[i] == MAP_FAILED) in main()
Dmlock2-tests.c198 if (map == MAP_FAILED) { in test_mlock_lock()
261 if (map == MAP_FAILED) { in test_mlock_onfault()
303 if (map == MAP_FAILED) { in test_lock_onfault_of_present()
340 if (map == MAP_FAILED) { in test_munlockall()
366 if (map == MAP_FAILED) { in test_munlockall()
420 if (map == MAP_FAILED) { in test_vma_management()
Dmremap_test.c82 if (remap_addr == MAP_FAILED) { in is_remap_region_valid()
164 if (start == MAP_FAILED) { in mremap_expand_merge()
171 if (remap == MAP_FAILED) { in mremap_expand_merge()
203 if (start == MAP_FAILED) { in mremap_expand_merge_offset()
211 if (remap == MAP_FAILED) { in mremap_expand_merge_offset()
247 if (src_addr == MAP_FAILED) { in get_source_mapping()
329 if (dest_addr == MAP_FAILED) { in remap_region()
Dhmm-tests.c318 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
381 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
440 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
488 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
556 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
634 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
709 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
813 if (buffer->ptr == MAP_FAILED) { in TEST_F()
882 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
930 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
[all …]
Dmigration.c128 ASSERT_NE(ptr, MAP_FAILED);
154 ASSERT_NE(ptr, MAP_FAILED);
188 ASSERT_NE(ptr, MAP_FAILED);
Dmap_populate.c57 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f()
87 BUG_ON(smap == MAP_FAILED, "mmap()"); in main()
Dmemfd_secret.c69 if (mem == MAP_FAILED) { in test_mlock_limit()
77 if (mem != MAP_FAILED) { in test_mlock_limit()
185 if (mem == MAP_FAILED) { in test_remote_access()
Dwrite_to_hugetlbfs.c177 if (ptr == MAP_FAILED) { in main()
191 if (ptr == MAP_FAILED) in main()
/linux-6.6.21/tools/testing/selftests/riscv/mm/
Dmmap_bottomup.c17 EXPECT_NE(MAP_FAILED, mmap_addresses.no_hint); in TEST()
18 EXPECT_NE(MAP_FAILED, mmap_addresses.on_37_addr); in TEST()
19 EXPECT_NE(MAP_FAILED, mmap_addresses.on_38_addr); in TEST()
20 EXPECT_NE(MAP_FAILED, mmap_addresses.on_46_addr); in TEST()
21 EXPECT_NE(MAP_FAILED, mmap_addresses.on_47_addr); in TEST()
22 EXPECT_NE(MAP_FAILED, mmap_addresses.on_55_addr); in TEST()
23 EXPECT_NE(MAP_FAILED, mmap_addresses.on_56_addr); in TEST()
Dmmap_default.c17 EXPECT_NE(MAP_FAILED, mmap_addresses.no_hint); in TEST()
18 EXPECT_NE(MAP_FAILED, mmap_addresses.on_37_addr); in TEST()
19 EXPECT_NE(MAP_FAILED, mmap_addresses.on_38_addr); in TEST()
20 EXPECT_NE(MAP_FAILED, mmap_addresses.on_46_addr); in TEST()
21 EXPECT_NE(MAP_FAILED, mmap_addresses.on_47_addr); in TEST()
22 EXPECT_NE(MAP_FAILED, mmap_addresses.on_55_addr); in TEST()
23 EXPECT_NE(MAP_FAILED, mmap_addresses.on_56_addr); in TEST()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dmmap.c56 if (CHECK(tmp1 != MAP_FAILED, "rdonly_write_mmap", "unexpected success\n")) { in test_mmap()
62 if (CHECK(tmp1 == MAP_FAILED, "rdonly_read_mmap", "failed: %d\n", errno)) in test_mmap()
75 if (CHECK(bss_mmaped == MAP_FAILED, "bss_mmap", in test_mmap()
83 if (CHECK(map_mmaped == MAP_FAILED, "data_mmap", in test_mmap()
147 if (CHECK(map_mmaped == MAP_FAILED, "data_mmap", in test_mmap()
166 if (CHECK_FAIL(p == MAP_FAILED)) in test_mmap()
182 if (CHECK(tmp1 != MAP_FAILED, "data_mmap", "mmap succeeded\n")) { in test_mmap()
202 if (CHECK(tmp0 == MAP_FAILED, "adv_mmap0", "errno %d\n", errno)) in test_mmap()
223 if (CHECK(tmp2 == MAP_FAILED, "adv_mmap3", "errno %d\n", errno)) { in test_mmap()
234 if (CHECK(tmp2 == MAP_FAILED, "adv_mmap5", "errno %d\n", errno)) { in test_mmap()
[all …]
/linux-6.6.21/tools/testing/selftests/mincore/
Dmincore_selftest.c52 ASSERT_NE(MAP_FAILED, addr) { in TEST()
96 ASSERT_NE(MAP_FAILED, addr) { in TEST()
152 if (addr == MAP_FAILED) { in TEST()
233 ASSERT_NE(MAP_FAILED, addr) { in TEST()
332 ASSERT_NE(MAP_FAILED, addr) { in TEST()
/linux-6.6.21/tools/testing/selftests/powerpc/mm/
Dhugetlb_vs_thp_test.c20 if (p != MAP_FAILED) { in test_body()
36 if (p == MAP_FAILED) { in test_body()
/linux-6.6.21/tools/testing/selftests/memfd/
Dmemfd_test.c279 if (p == MAP_FAILED) { in mfd_assert_mmap_shared()
297 if (p == MAP_FAILED) { in mfd_assert_mmap_private()
352 if (p == MAP_FAILED) { in mfd_assert_read()
365 if (p == MAP_FAILED) { in mfd_assert_read()
384 if (p == MAP_FAILED) { in mfd_assert_read_shared()
402 if (p == MAP_FAILED) { in mfd_assert_fork_private_write()
451 if (p == MAP_FAILED) { in mfd_assert_write()
465 if (p == MAP_FAILED) { in mfd_assert_write()
480 if (p == MAP_FAILED) { in mfd_assert_write()
525 if (p != MAP_FAILED) { in mfd_fail_write()
[all …]
/linux-6.6.21/tools/testing/selftests/powerpc/signal/
Dsigreturn_vdso.c95 assert(p != MAP_FAILED); in test_sigreturn_vdso()
96 assert(mremap((void *)low, size, size, MREMAP_MAYMOVE|MREMAP_FIXED, p) != MAP_FAILED); in test_sigreturn_vdso()
/linux-6.6.21/tools/testing/selftests/x86/
Dlam.c323 if (ptr == MAP_FAILED) { in handle_mmap()
403 if (sq_ptr == MAP_FAILED) { in mmap_io_uring()
414 if (cq_ptr == MAP_FAILED) { in mmap_io_uring()
432 if (s->sq_ring.queue.sqes == MAP_FAILED) { in mmap_io_uring()
1058 return MAP_FAILED; in allocate_dsa_pasid()
1063 if (wq == MAP_FAILED) in allocate_dsa_pasid()
1111 if (wq == MAP_FAILED) in handle_pasid()
1124 if (wq != MAP_FAILED && wq != NULL) in handle_pasid()

1234567