/linux/tools/testing/selftests/vm/ |
A D | va_128TBswitch.c | 50 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 62 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 73 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 86 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 93 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 100 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 107 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 120 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 127 .flags = MAP_PRIVATE | MAP_ANONYMOUS, 133 .flags = MAP_PRIVATE | MAP_ANONYMOUS, [all …]
|
A 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() 192 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mremap_dontunmap_simple_fixed() 198 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mremap_dontunmap_simple_fixed() 248 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mremap_dontunmap_partial_mapping() 300 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mremap_dontunmap_partial_mapping_overwrite() 306 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mremap_dontunmap_partial_mapping_overwrite() 350 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in main()
|
A D | madv_populate.c | 62 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in sense_support() 84 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read() 105 addr = mmap(0, SIZE, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_write() 127 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_holes() 197 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_populate_read() 219 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_populate_write() 283 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_softdirty()
|
A 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()
|
A 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()
|
A D | ksm_tests.c | 466 MAP_NORESERVE | MAP_PRIVATE, -1, 0) != ptr) in allocate_transhuge() 499 MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE, -1, 0); in ksm_merge_hugepages_time() 765 ret = check_ksm_merge(MAP_PRIVATE | MAP_ANONYMOUS, prot, page_count, in main() 769 ret = check_ksm_unmerge(MAP_PRIVATE | MAP_ANONYMOUS, prot, ksm_scan_limit_sec, in main() 773 ret = check_ksm_zero_page_merge(MAP_PRIVATE | MAP_ANONYMOUS, prot, page_count, in main() 777 ret = check_ksm_numa_merge(MAP_PRIVATE | MAP_ANONYMOUS, prot, ksm_scan_limit_sec, in main() 785 ret = ksm_merge_time(MAP_PRIVATE | MAP_ANONYMOUS, prot, ksm_scan_limit_sec, in main() 793 ret = ksm_merge_hugepages_time(MAP_PRIVATE | MAP_ANONYMOUS, prot, in main() 797 ret = ksm_cow_time(MAP_PRIVATE | MAP_ANONYMOUS, prot, ksm_scan_limit_sec, in main()
|
A D | map_hugetlb.c | 37 #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_FIXED) 40 #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB)
|
A D | hmm-tests.c | 248 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 311 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 370 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 418 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 486 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 639 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 869 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 917 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 1012 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 1279 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() [all …]
|
A 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()
|
A D | write_to_hugetlbfs.c | 172 (private ? MAP_PRIVATE : MAP_SHARED) | in main() 185 (private ? (MAP_PRIVATE | MAP_ANONYMOUS) : in main()
|
A D | gup_test.c | 88 int flags = MAP_PRIVATE, touch = 0; in main() 157 flags &= ~MAP_PRIVATE; in main()
|
/linux/tools/testing/selftests/arm64/mte/ |
A 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() 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() 249 evaluate_test(check_file_memory_mapping(USE_MMAP, MTE_ASYNC_ERR, MAP_PRIVATE, TAG_CHECK_ON), in main() 251 evaluate_test(check_file_memory_mapping(USE_MPROTECT, MTE_ASYNC_ERR, MAP_PRIVATE, TAG_CHECK_ON), in main() 258 evaluate_test(check_clear_prot_mte_flag(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE), in main() [all …]
|
A 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()
|
A D | check_user_mem.c | 103 evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE), in main() 108 evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_ASYNC_ERR, MAP_PRIVATE), in main()
|
A D | check_ksm_options.c | 153 evaluate_test(check_madvise_options(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE), in main() 155 evaluate_test(check_madvise_options(USE_MMAP, MTE_ASYNC_ERR, MAP_PRIVATE), in main()
|
/linux/drivers/misc/lkdtm/ |
A D | usercopy.c | 71 MAP_ANONYMOUS | MAP_PRIVATE, 0); in do_usercopy_stack() 139 MAP_ANONYMOUS | MAP_PRIVATE, 0); in do_usercopy_heap_size() 215 MAP_ANONYMOUS | MAP_PRIVATE, 0); in do_usercopy_heap_whitelist() 305 MAP_ANONYMOUS | MAP_PRIVATE, 0); in lkdtm_USERCOPY_KERNEL()
|
A D | perms.c | 163 MAP_ANONYMOUS | MAP_PRIVATE, 0); in lkdtm_EXEC_USERSPACE() 184 MAP_ANONYMOUS | MAP_PRIVATE, 0); in lkdtm_ACCESS_USERSPACE()
|
/linux/tools/testing/selftests/powerpc/mm/ |
A 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()
|
/linux/tools/testing/selftests/powerpc/tm/ |
A 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/tools/testing/selftests/x86/ |
A 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/tools/testing/selftests/sigaltstack/ |
A D | sas.c | 131 MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0); in main() 175 MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0); in main()
|
/linux/arch/x86/ia32/ |
A D | ia32_aout.c | 205 MAP_FIXED | MAP_PRIVATE | MAP_32BIT, in load_aout_binary() 213 MAP_FIXED | MAP_PRIVATE | MAP_32BIT, in load_aout_binary() 294 MAP_FIXED | MAP_PRIVATE | MAP_32BIT, in load_aout_library()
|
/linux/fs/ |
A D | binfmt_aout.c | 224 PROT_READ | PROT_EXEC, MAP_FIXED | MAP_PRIVATE, in load_aout_binary() 232 MAP_FIXED | MAP_PRIVATE, in load_aout_binary() 311 MAP_FIXED | MAP_PRIVATE, in load_aout_library()
|
/linux/tools/testing/selftests/ptrace/ |
A 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/tools/include/uapi/asm-generic/ |
A D | mman-common-tools.h | 20 #define MAP_PRIVATE 0x02 /* Changes are private */ macro
|