Home
last modified time | relevance | path

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

123456

/linux/tools/testing/selftests/vm/
A Dva_128TBswitch.c50 .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 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()
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 Dmadv_populate.c62 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 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()
A 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()
A Dksm_tests.c466 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 Dmap_hugetlb.c37 #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_FIXED)
40 #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB)
A Dhmm-tests.c248 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 Dtranshuge-stress.c37 MAP_NORESERVE | MAP_PRIVATE, -1, 0) != ptr) in allocate_transhuge()
90 MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE, -1, 0); in main()
A Dwrite_to_hugetlbfs.c172 (private ? MAP_PRIVATE : MAP_SHARED) | in main()
185 (private ? (MAP_PRIVATE | MAP_ANONYMOUS) : in main()
A Dgup_test.c88 int flags = MAP_PRIVATE, touch = 0; in main()
157 flags &= ~MAP_PRIVATE; in main()
/linux/tools/testing/selftests/arm64/mte/
A 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()
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 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()
A Dcheck_user_mem.c103 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 Dcheck_ksm_options.c153 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 Dusercopy.c71 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 Dperms.c163 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 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()
/linux/tools/testing/selftests/powerpc/tm/
A 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/tools/testing/selftests/x86/
A 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/tools/testing/selftests/sigaltstack/
A Dsas.c131 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 Dia32_aout.c205 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 Dbinfmt_aout.c224 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 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/tools/include/uapi/asm-generic/
A Dmman-common-tools.h20 #define MAP_PRIVATE 0x02 /* Changes are private */ macro

Completed in 34 milliseconds

123456