/Linux-v6.1/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() 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()
|
D | madv_populate.c | 44 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()
|
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 | hugetlb-madvise.c | 142 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()
|
D | ksm_tests.c | 467 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()
|
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 | soft-dirty.c | 52 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()
|
D | hmm-tests.c | 311 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 …]
|
D | hugepage-vmemmap.c | 40 #define MAP_FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_FIXED) 43 #define MAP_FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB)
|
D | map_fixed_noreplace.c | 33 flags = MAP_PRIVATE | MAP_ANONYMOUS; in find_base_addr() 63 flags = MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED_NOREPLACE; in main()
|
D | write_to_hugetlbfs.c | 172 (private ? MAP_PRIVATE : MAP_SHARED) | in main() 185 (private ? (MAP_PRIVATE | MAP_ANONYMOUS) : in main()
|
D | gup_test.c | 94 int flags = MAP_PRIVATE, touch = 0; in main() 163 flags &= ~MAP_PRIVATE; in main()
|
/Linux-v6.1/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_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-v6.1/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()
|
/Linux-v6.1/drivers/misc/lkdtm/ |
D | usercopy.c | 83 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()
|
D | perms.c | 206 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/ |
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-v6.1/arch/um/os-Linux/ |
D | mem.c | 33 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/ |
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-v6.1/tools/include/uapi/asm-generic/ |
D | mman-common-tools.h | 20 #define MAP_PRIVATE 0x02 /* Changes are private */ macro
|
/Linux-v6.1/tools/testing/selftests/sigaltstack/ |
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()
|