/linux-6.6.21/tools/testing/selftests/mm/ |
D | mremap_dontunmap.c | 48 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 …]
|
D | map_fixed_noreplace.c | 31 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()
|
D | mdwe_test.c | 103 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()
|
D | mkdirty.c | 69 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()
|
D | hugepage-mremap.c | 89 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()
|
D | ksm_functional_tests.c | 167 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()
|
D | hugetlb-madvise.c | 119 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()
|
D | cow.c | 686 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 …]
|
D | madv_populate.c | 59 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()
|
D | virtual_address_range.c | 97 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()
|
D | mlock2-tests.c | 198 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()
|
D | mremap_test.c | 82 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()
|
D | hmm-tests.c | 318 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 …]
|
D | migration.c | 128 ASSERT_NE(ptr, MAP_FAILED); 154 ASSERT_NE(ptr, MAP_FAILED); 188 ASSERT_NE(ptr, MAP_FAILED);
|
D | map_populate.c | 57 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f() 87 BUG_ON(smap == MAP_FAILED, "mmap()"); in main()
|
D | memfd_secret.c | 69 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()
|
D | write_to_hugetlbfs.c | 177 if (ptr == MAP_FAILED) { in main() 191 if (ptr == MAP_FAILED) in main()
|
/linux-6.6.21/tools/testing/selftests/riscv/mm/ |
D | mmap_bottomup.c | 17 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()
|
D | mmap_default.c | 17 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/ |
D | mmap.c | 56 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/ |
D | mincore_selftest.c | 52 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/ |
D | hugetlb_vs_thp_test.c | 20 if (p != MAP_FAILED) { in test_body() 36 if (p == MAP_FAILED) { in test_body()
|
/linux-6.6.21/tools/testing/selftests/memfd/ |
D | memfd_test.c | 279 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/ |
D | sigreturn_vdso.c | 95 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/ |
D | lam.c | 323 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()
|