Home
last modified time | relevance | path

Searched refs:MAP_PRIVATE (Results 1 – 25 of 112) sorted by relevance

12345

/Linux-v5.10/tools/testing/selftests/vm/
Dva_128TBswitch.c50 .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 …]
Dmremap_dontunmap.c50 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()
Dvirtual_address_range.c89 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()
Dmlock2-tests.c198 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()
Dmap_hugetlb.c37 #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_FIXED)
40 #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB)
Dgup_benchmark.c43 int cmd = GUP_FAST_BENCHMARK, flags = MAP_PRIVATE; in main()
86 flags &= ~MAP_PRIVATE; in main()
Dtranshuge-stress.c37 MAP_NORESERVE | MAP_PRIVATE, -1, 0) != ptr) in allocate_transhuge()
90 MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE, -1, 0); in main()
Dhmm-tests.c244 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 …]
Dwrite_to_hugetlbfs.c172 (private ? MAP_PRIVATE : MAP_SHARED) | in main()
185 (private ? (MAP_PRIVATE | MAP_ANONYMOUS) : in main()
/Linux-v5.10/tools/testing/selftests/arm64/mte/
Dcheck_mmap_options.c213 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 …]
Dcheck_child_memory.c169 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()
Dcheck_user_mem.c102 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()
Dcheck_ksm_options.c150 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/
Dhugetlb_vs_thp_test.c19 MAP_HUGETLB | MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_body()
35 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_body()
Dprot_sao.c36 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_prot_sao()
/Linux-v5.10/drivers/misc/lkdtm/
Dusercopy.c71 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()
Dperms.c163 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/
Dtm-signal-context-force-tm.c62 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/
Dmman-common-tools.h20 #define MAP_PRIVATE 0x02 /* Changes are private */ macro
/Linux-v5.10/tools/testing/selftests/x86/
Dfsgsbase_restore.c54 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/
Dsas.c121 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/
Dpeeksiginfo.c55 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/
Dia32_aout.c205 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/
Dbinfmt_aout.c225 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/
Dmman.h17 #define MAP_PRIVATE 0x02 /* Changes are private */ macro

12345