Home
last modified time | relevance | path

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

123456

/linux-6.1.9/tools/testing/selftests/vm/
Dmremap_dontunmap.c51 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in kernel_support_for_mremap_dontunmap()
58 if (dest_mapping == MAP_FAILED) { in kernel_support_for_mremap_dontunmap()
105 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple()
113 BUG_ON(dest_mapping == MAP_FAILED, "mremap"); in mremap_dontunmap_simple()
144 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple_shmem()
154 if (dest_mapping == MAP_FAILED && errno == EINVAL) { in mremap_dontunmap_simple_shmem()
161 BUG_ON(dest_mapping == MAP_FAILED, "mremap"); in mremap_dontunmap_simple_shmem()
193 BUG_ON(dest_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple_fixed()
199 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple_fixed()
206 BUG_ON(remapped_mapping == MAP_FAILED, "mremap"); in mremap_dontunmap_simple_fixed()
[all …]
Dmap_fixed_noreplace.c35 if (addr == MAP_FAILED) { in find_base_addr()
73 if (p == MAP_FAILED) { in main()
93 if (p == MAP_FAILED) { in main()
113 if (p != MAP_FAILED) { in main()
134 if (p != MAP_FAILED) { in main()
154 if (p != MAP_FAILED) { in main()
174 if (p != MAP_FAILED) { in main()
194 if (p == MAP_FAILED) { in main()
214 if (p == MAP_FAILED) { in main()
Dhugepage-mremap.c87 if (addr == MAP_FAILED) { in register_region_with_uffd()
141 if (haddr == MAP_FAILED) { in main()
151 if (daddr == MAP_FAILED) { in main()
160 if (vaddr == MAP_FAILED) { in main()
169 if (addr == MAP_FAILED) { in main()
182 if (addr != MAP_FAILED) { in main()
Dhugetlb-madvise.c144 if (addr == MAP_FAILED) { in main()
186 if (addr == MAP_FAILED) { in main()
223 if (addr == MAP_FAILED) { in main()
252 if (addr == MAP_FAILED) { in main()
311 if (addr == MAP_FAILED) { in main()
351 if (addr == MAP_FAILED) { in main()
363 if (addr2 == MAP_FAILED) { in main()
Dmadv_populate.c67 if (addr == MAP_FAILED) in test_prot_read()
88 if (addr == MAP_FAILED) in test_prot_write()
110 if (addr == MAP_FAILED) in test_holes()
180 if (addr == MAP_FAILED) in test_populate_read()
202 if (addr == MAP_FAILED) in test_populate_write()
252 if (addr == MAP_FAILED) in test_softdirty()
Dvirtual_address_range.c91 if (ptr == MAP_FAILED) in validate_lower_address_hint()
108 if (ptr[i] == MAP_FAILED) { in main()
124 if (hptr[i] == MAP_FAILED) in main()
Dmlock2-tests.c199 if (map == MAP_FAILED) { in test_mlock_lock()
262 if (map == MAP_FAILED) { in test_mlock_onfault()
304 if (map == MAP_FAILED) { in test_lock_onfault_of_present()
341 if (map == MAP_FAILED) { in test_munlockall()
367 if (map == MAP_FAILED) { in test_munlockall()
421 if (map == MAP_FAILED) { in test_vma_management()
Dhmm-tests.c313 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
376 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
435 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
483 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
551 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
629 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
704 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
808 if (buffer->ptr == MAP_FAILED) { in TEST_F()
877 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
925 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
[all …]
Dmigration.c124 ASSERT_NE(ptr, MAP_FAILED);
150 ASSERT_NE(ptr, MAP_FAILED);
179 ASSERT_NE(ptr, MAP_FAILED);
Dmap_populate.c59 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f()
89 BUG_ON(smap == MAP_FAILED, "mmap()"); in main()
Dmemfd_secret.c66 if (mem == MAP_FAILED) { in test_mlock_limit()
74 if (mem != MAP_FAILED) { in test_mlock_limit()
182 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()
Dsoft-dirty.c53 if (map == MAP_FAILED) in test_vma_reuse()
64 if (map2 == MAP_FAILED) in test_vma_reuse()
/linux-6.1.9/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.1.9/tools/testing/selftests/memfd/
Dmemfd_test.c181 if (p == MAP_FAILED) { in mfd_assert_mmap_shared()
199 if (p == MAP_FAILED) { in mfd_assert_mmap_private()
254 if (p == MAP_FAILED) { in mfd_assert_read()
267 if (p == MAP_FAILED) { in mfd_assert_read()
286 if (p == MAP_FAILED) { in mfd_assert_read_shared()
304 if (p == MAP_FAILED) { in mfd_assert_fork_private_write()
353 if (p == MAP_FAILED) { in mfd_assert_write()
367 if (p == MAP_FAILED) { in mfd_assert_write()
382 if (p == MAP_FAILED) { in mfd_assert_write()
427 if (p != MAP_FAILED) { in mfd_fail_write()
[all …]
/linux-6.1.9/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.1.9/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()
Dprot_sao.c37 FAIL_IF(p == MAP_FAILED); in test_prot_sao()
/linux-6.1.9/tools/io_uring/
Dsetup.c20 if (ptr == MAP_FAILED) in io_uring_mmap()
34 if (sq->sqes == MAP_FAILED) { in io_uring_mmap()
44 if (ptr == MAP_FAILED) { in io_uring_mmap()
/linux-6.1.9/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.1.9/tools/testing/selftests/user_events/
Dperf_test.c123 ASSERT_NE(MAP_FAILED, status_page); in TEST_F()
149 ASSERT_NE(MAP_FAILED, perf_page); in TEST_F()
Dftrace_test.c218 ASSERT_NE(MAP_FAILED, status_page); in TEST_F()
273 ASSERT_NE(MAP_FAILED, status_page); in TEST_F()
309 ASSERT_NE(MAP_FAILED, anon); in TEST_F()
351 ASSERT_NE(MAP_FAILED, status_page); in TEST_F()
/linux-6.1.9/arch/um/os-Linux/
Dmem.c35 0) == MAP_FAILED) { in kasan_map_memory()
220 if (addr == MAP_FAILED) { in check_tmpexec()
/linux-6.1.9/tools/testing/selftests/sigaltstack/
Dsas.c132 if (sstack == MAP_FAILED) { in main()
176 if (ustack == MAP_FAILED) { in main()
/linux-6.1.9/arch/arm/vdso/
Dvdsomunge.c146 if (inbuf == MAP_FAILED) in main()
188 if (outbuf == MAP_FAILED) in main()

123456