Home
last modified time | relevance | path

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

123456

/Linux-v6.1/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()
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()
Dmadv_populate.c44 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in sense_support()
66 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read()
87 addr = mmap(0, SIZE, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_write()
109 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_holes()
179 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_populate_read()
201 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_populate_write()
251 MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_softdirty()
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()
Dhugetlb-madvise.c142 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, in main()
184 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, in main()
221 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, in main()
251 MAP_PRIVATE, fd, 0); in main()
362 MAP_PRIVATE, fd, 0); in main()
Dksm_tests.c467 MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE, -1, 0); in ksm_merge_hugepages_time()
734 ret = check_ksm_merge(MAP_PRIVATE | MAP_ANONYMOUS, prot, page_count, in main()
738 ret = check_ksm_unmerge(MAP_PRIVATE | MAP_ANONYMOUS, prot, ksm_scan_limit_sec, in main()
742 ret = check_ksm_zero_page_merge(MAP_PRIVATE | MAP_ANONYMOUS, prot, page_count, in main()
746 ret = check_ksm_numa_merge(MAP_PRIVATE | MAP_ANONYMOUS, prot, ksm_scan_limit_sec, in main()
754 ret = ksm_merge_time(MAP_PRIVATE | MAP_ANONYMOUS, prot, ksm_scan_limit_sec, in main()
762 ret = ksm_merge_hugepages_time(MAP_PRIVATE | MAP_ANONYMOUS, prot, in main()
766 ret = ksm_cow_time(MAP_PRIVATE | MAP_ANONYMOUS, prot, ksm_scan_limit_sec, in main()
Dmap_hugetlb.c37 #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_FIXED)
40 #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB)
Dsoft-dirty.c52 map = mmap(NULL, pagesize, (PROT_READ | PROT_WRITE), (MAP_PRIVATE | MAP_ANON), -1, 0); in test_vma_reuse()
63 map2 = mmap(NULL, pagesize, (PROT_READ | PROT_WRITE), (MAP_PRIVATE | MAP_ANON), -1, 0); in test_vma_reuse()
133 MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in test_mprotect()
Dhmm-tests.c311 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F()
374 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F()
433 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F()
481 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F()
549 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F()
702 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F()
806 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, in TEST_F()
976 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F()
1024 MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F()
1079 MAP_PRIVATE | MAP_ANONYMOUS, buffer->fd, 0); in TEST_F()
[all …]
Dhugepage-vmemmap.c40 #define MAP_FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_FIXED)
43 #define MAP_FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB)
Dmap_fixed_noreplace.c33 flags = MAP_PRIVATE | MAP_ANONYMOUS; in find_base_addr()
63 flags = MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED_NOREPLACE; in main()
Dwrite_to_hugetlbfs.c172 (private ? MAP_PRIVATE : MAP_SHARED) | in main()
185 (private ? (MAP_PRIVATE | MAP_ANONYMOUS) : in main()
Dgup_test.c94 int flags = MAP_PRIVATE, touch = 0; in main()
163 flags &= ~MAP_PRIVATE; in main()
/Linux-v6.1/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_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-v6.1/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()
/Linux-v6.1/drivers/misc/lkdtm/
Dusercopy.c83 MAP_ANONYMOUS | MAP_PRIVATE, 0); in do_usercopy_stack()
151 MAP_ANONYMOUS | MAP_PRIVATE, 0); in do_usercopy_slab_size()
227 MAP_ANONYMOUS | MAP_PRIVATE, 0); in do_usercopy_slab_whitelist()
317 MAP_ANONYMOUS | MAP_PRIVATE, 0); in lkdtm_USERCOPY_KERNEL()
356 MAP_ANONYMOUS | MAP_PRIVATE, 0); in do_usercopy_page_span()
Dperms.c206 MAP_ANONYMOUS | MAP_PRIVATE, 0); in lkdtm_EXEC_USERSPACE()
227 MAP_ANONYMOUS | MAP_PRIVATE, 0); in lkdtm_ACCESS_USERSPACE()
/Linux-v6.1/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-v6.1/arch/um/os-Linux/
Dmem.c33 MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE|MAP_NORESERVE, in kasan_map_memory()
218 PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, fd, 0); in check_tmpexec()
/Linux-v6.1/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-v6.1/tools/include/uapi/asm-generic/
Dmman-common-tools.h20 #define MAP_PRIVATE 0x02 /* Changes are private */ macro
/Linux-v6.1/tools/testing/selftests/sigaltstack/
Dsas.c131 MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0); in main()
175 MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0); in main()

123456