/linux-6.1.9/tools/testing/selftests/vm/ |
D | mremap_dontunmap.c | 51 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 …]
|
D | map_fixed_noreplace.c | 35 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()
|
D | hugepage-mremap.c | 87 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()
|
D | hugetlb-madvise.c | 144 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()
|
D | madv_populate.c | 67 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()
|
D | virtual_address_range.c | 91 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()
|
D | mlock2-tests.c | 199 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()
|
D | hmm-tests.c | 313 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 …]
|
D | migration.c | 124 ASSERT_NE(ptr, MAP_FAILED); 150 ASSERT_NE(ptr, MAP_FAILED); 179 ASSERT_NE(ptr, MAP_FAILED);
|
D | map_populate.c | 59 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f() 89 BUG_ON(smap == MAP_FAILED, "mmap()"); in main()
|
D | memfd_secret.c | 66 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()
|
D | write_to_hugetlbfs.c | 177 if (ptr == MAP_FAILED) { in main() 191 if (ptr == MAP_FAILED) in main()
|
D | soft-dirty.c | 53 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/ |
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.1.9/tools/testing/selftests/memfd/ |
D | memfd_test.c | 181 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/ |
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.1.9/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()
|
D | prot_sao.c | 37 FAIL_IF(p == MAP_FAILED); in test_prot_sao()
|
/linux-6.1.9/tools/io_uring/ |
D | setup.c | 20 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/ |
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.1.9/tools/testing/selftests/user_events/ |
D | perf_test.c | 123 ASSERT_NE(MAP_FAILED, status_page); in TEST_F() 149 ASSERT_NE(MAP_FAILED, perf_page); in TEST_F()
|
D | ftrace_test.c | 218 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/ |
D | mem.c | 35 0) == MAP_FAILED) { in kasan_map_memory() 220 if (addr == MAP_FAILED) { in check_tmpexec()
|
/linux-6.1.9/tools/testing/selftests/sigaltstack/ |
D | sas.c | 132 if (sstack == MAP_FAILED) { in main() 176 if (ustack == MAP_FAILED) { in main()
|
/linux-6.1.9/arch/arm/vdso/ |
D | vdsomunge.c | 146 if (inbuf == MAP_FAILED) in main() 188 if (outbuf == MAP_FAILED) in main()
|