/Linux-v5.10/tools/testing/selftests/vm/ |
D | va_128TBswitch.c | 50 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 62 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 73 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 80 .flags = MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, 86 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 93 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 100 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 107 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 114 .flags = MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, 120 .flags = MAP_PRIVATE | MAP_ANONYMOUS, [all …]
|
D | mremap_dontunmap.c | 50 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in kernel_support_for_mremap_dontunmap() 104 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mremap_dontunmap_simple() 141 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mremap_dontunmap_simple_fixed() 147 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mremap_dontunmap_simple_fixed() 197 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mremap_dontunmap_partial_mapping() 249 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mremap_dontunmap_partial_mapping_overwrite() 255 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mremap_dontunmap_partial_mapping_overwrite() 299 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in main()
|
D | virtual_address_range.c | 89 PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in validate_lower_address_hint() 106 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in main() 122 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in main()
|
D | mlock2-tests.c | 198 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_mlock_lock() 261 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_mlock_onfault() 303 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_lock_onfault_of_present() 339 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_munlockall() 365 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_munlockall() 420 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_vma_management()
|
D | map_hugetlb.c | 37 #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_FIXED) 40 #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB)
|
D | gup_benchmark.c | 43 int cmd = GUP_FAST_BENCHMARK, flags = MAP_PRIVATE; in main() 86 flags &= ~MAP_PRIVATE; in main()
|
D | transhuge-stress.c | 37 MAP_NORESERVE | MAP_PRIVATE, -1, 0) != ptr) in allocate_transhuge() 90 MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE, -1, 0); in main()
|
D | hmm-tests.c | 244 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 307 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 366 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 414 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 482 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 635 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 863 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 911 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 1006 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 1095 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() [all …]
|
D | write_to_hugetlbfs.c | 172 (private ? MAP_PRIVATE : MAP_SHARED) | in main() 185 (private ? (MAP_PRIVATE | MAP_ANONYMOUS) : in main()
|
/Linux-v5.10/tools/testing/selftests/arm64/mte/ |
D | check_mmap_options.c | 213 evaluate_test(check_anonymous_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE, TAG_CHECK_OFF), in main() 215 evaluate_test(check_file_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_PRIVATE, TAG_CHECK_OFF), in main() 219 evaluate_test(check_anonymous_memory_mapping(USE_MMAP, MTE_NONE_ERR, MAP_PRIVATE, TAG_CHECK_OFF), in main() 221 evaluate_test(check_file_memory_mapping(USE_MPROTECT, MTE_NONE_ERR, MAP_PRIVATE, TAG_CHECK_OFF), in main() 224 evaluate_test(check_anonymous_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE, TAG_CHECK_ON), in main() 226 …evaluate_test(check_anonymous_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_PRIVATE, TAG_CHECK_ON… in main() 232 evaluate_test(check_anonymous_memory_mapping(USE_MMAP, MTE_ASYNC_ERR, MAP_PRIVATE, TAG_CHECK_ON), in main() 234 …evaluate_test(check_anonymous_memory_mapping(USE_MPROTECT, MTE_ASYNC_ERR, MAP_PRIVATE, TAG_CHECK_O… in main() 241 evaluate_test(check_file_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE, TAG_CHECK_ON), in main() 243 evaluate_test(check_file_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_PRIVATE, TAG_CHECK_ON), in main() [all …]
|
D | check_child_memory.c | 169 evaluate_test(check_child_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE), in main() 173 evaluate_test(check_child_memory_mapping(USE_MMAP, MTE_ASYNC_ERR, MAP_PRIVATE), in main() 177 evaluate_test(check_child_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_PRIVATE), in main() 182 evaluate_test(check_child_file_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE), in main() 186 evaluate_test(check_child_memory_mapping(USE_MMAP, MTE_ASYNC_ERR, MAP_PRIVATE), in main() 190 evaluate_test(check_child_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_PRIVATE), in main()
|
D | check_user_mem.c | 102 evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE), in main() 107 evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_ASYNC_ERR, MAP_PRIVATE), in main()
|
D | check_ksm_options.c | 150 evaluate_test(check_madvise_options(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE), in main() 152 evaluate_test(check_madvise_options(USE_MMAP, MTE_ASYNC_ERR, MAP_PRIVATE), in main()
|
/Linux-v5.10/tools/testing/selftests/powerpc/mm/ |
D | hugetlb_vs_thp_test.c | 19 MAP_HUGETLB | MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_body() 35 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_body()
|
D | prot_sao.c | 36 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_prot_sao()
|
/Linux-v5.10/drivers/misc/lkdtm/ |
D | usercopy.c | 71 MAP_ANONYMOUS | MAP_PRIVATE, 0); in do_usercopy_stack() 139 MAP_ANONYMOUS | MAP_PRIVATE, 0); in do_usercopy_heap_size() 213 MAP_ANONYMOUS | MAP_PRIVATE, 0); in do_usercopy_heap_whitelist() 301 MAP_ANONYMOUS | MAP_PRIVATE, 0); in lkdtm_USERCOPY_KERNEL()
|
D | perms.c | 163 MAP_ANONYMOUS | MAP_PRIVATE, 0); in lkdtm_EXEC_USERSPACE() 184 MAP_ANONYMOUS | MAP_PRIVATE, 0); in lkdtm_ACCESS_USERSPACE()
|
/Linux-v5.10/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-context-force-tm.c | 62 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in usr_signal_handler() 128 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in tm_trap_test()
|
/Linux-v5.10/tools/include/uapi/asm-generic/ |
D | mman-common-tools.h | 20 #define MAP_PRIVATE 0x02 /* Changes are private */ macro
|
/Linux-v5.10/tools/testing/selftests/x86/ |
D | fsgsbase_restore.c | 54 MAP_PRIVATE | MAP_ANONYMOUS | MAP_32BIT, -1, 0); in init_seg() 82 MAP_PRIVATE | MAP_ANONYMOUS | MAP_32BIT, -1, 0); in init_seg()
|
/Linux-v5.10/tools/testing/selftests/sigaltstack/ |
D | sas.c | 121 MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0); in main() 165 MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0); in main()
|
/Linux-v5.10/tools/testing/selftests/ptrace/ |
D | peeksiginfo.c | 55 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in check_error_paths() 62 MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0); in check_error_paths()
|
/Linux-v5.10/arch/x86/ia32/ |
D | ia32_aout.c | 205 MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE | in load_aout_binary() 214 MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE | in load_aout_binary() 296 MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE | MAP_32BIT, in load_aout_library()
|
/Linux-v5.10/fs/ |
D | binfmt_aout.c | 225 MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE | MAP_EXECUTABLE, in load_aout_binary() 233 MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE | MAP_EXECUTABLE, in load_aout_binary() 312 MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE, in load_aout_library()
|
/Linux-v5.10/include/uapi/linux/ |
D | mman.h | 17 #define MAP_PRIVATE 0x02 /* Changes are private */ macro
|