Home
last modified time | relevance | path

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

12345678910>>...16

/external/linux-kselftest/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 …]
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()
/external/ltp/testcases/kernel/syscalls/pkeys/
Dpkey01.c87 {PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1},
89 {PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1},
91 {PROT_READ, MAP_PRIVATE, 0},
94 {PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1},
96 {PROT_WRITE, MAP_PRIVATE, 0},
98 {PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1},
101 {PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE, -1},
103 {PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1},
105 {PROT_EXEC, MAP_PRIVATE, 0},
108 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1},
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D5-1.c50 {.flags = MAP_PRIVATE,.prot = PROT_NONE},
51 {.flags = MAP_PRIVATE,.prot = PROT_READ},
52 {.flags = MAP_PRIVATE,.prot = PROT_WRITE},
53 {.flags = MAP_PRIVATE,.prot = PROT_EXEC},
54 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE},
55 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_EXEC},
56 {.flags = MAP_PRIVATE,.prot = PROT_EXEC | PROT_WRITE},
57 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE | PROT_EXEC},
80 case MAP_PRIVATE: in print_error()
D7-2.c63 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main()
80 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main()
/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c48 mem = SAFE_MMAP(NULL, size, PROT_WRITE, MAP_PRIVATE, fd, 0); in check_huge_mmapable()
54 NULL, size, PROT_WRITE, MAP_PRIVATE, fd, 0); in check_huge_mmapable()
142 new_mem = mmap(NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages()
147 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages()
151 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages()
155 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages()
/external/ltp/testcases/kernel/syscalls/memmap/
Dmem03.c92 mm1 = mmap(0, 64, PROT_READ, MAP_PRIVATE, f1, 0); in main()
93 mm2 = mmap(0, 64, PROT_READ, MAP_PRIVATE, f2, 0); in main()
110 mm1 = mmap(save_mm2, 64, PROT_READ, MAP_PRIVATE, f1, 0); in main()
111 mm2 = mmap(save_mm1, 64, PROT_READ, MAP_PRIVATE, f2, 0); in main()
/external/igt-gpu-tools/tests/i915/
Dgem_ctx_sseu.c261 page[0] = mmap(0, 4096, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in test_invalid_args()
269 page[0] = mmap(0, 8192, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in test_invalid_args()
273 PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); in test_invalid_args()
277 PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); in test_invalid_args()
287 page[0] = mmap(0, 8192, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in test_invalid_args()
291 PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); in test_invalid_args()
295 PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); in test_invalid_args()
336 page[0] = mmap(0, 4096, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in test_invalid_args()
344 page[0] = mmap(0, 8192, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in test_invalid_args()
348 PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); in test_invalid_args()
[all …]
/external/elfutils/lib/
Dcrc32_file.c53 void *mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, fd, 0); in crc32_file()
59 && (mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, in crc32_file()
76 } while (mmap (mapped, mapsize, PROT_READ, MAP_FIXED|MAP_PRIVATE, in crc32_file()
/external/strace/tests-m32/
Dold_mmap.c75 MAP_PRIVATE|MAP_ANONYMOUS, in main()
104 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
110 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
Dmmap.c75 MAP_PRIVATE | MAP_ANONYMOUS, fd, offset); in main()
81 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
87 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
/external/strace/tests/
Dold_mmap.c75 MAP_PRIVATE|MAP_ANONYMOUS, in main()
104 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
110 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
Dmmap.c75 MAP_PRIVATE | MAP_ANONYMOUS, fd, offset); in main()
81 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
87 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
/external/strace/tests-mx32/
Dold_mmap.c75 MAP_PRIVATE|MAP_ANONYMOUS, in main()
104 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
110 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
Dmmap.c75 MAP_PRIVATE | MAP_ANONYMOUS, fd, offset); in main()
81 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
87 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D3-2-buildonly.c18 #ifndef MAP_PRIVATE
19 #error MAP_PRIVATE not defined
/external/compiler-rt/test/esan/TestCases/
Dmmap-shadow-conflict.c10 MAP_ANON|MAP_PRIVATE|MAP_FIXED, -1, 0); in main()
16 MAP_ANON|MAP_PRIVATE, -1, 0); in main()
/external/autotest/client/tests/aio_dio_bugs/src/
Daio-free-ring-with-bogus-nr-pages.c46 map = mmap(NULL, 100, PROT_READ, MAP_ANONYMOUS|MAP_PRIVATE, in main()
50 map = mmap(NULL, 100, PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, in main()
/external/compiler-rt/test/tsan/
Djava_heap_init.cc12 MAP_ANON | MAP_PRIVATE, -1, 0); in main()
18 MAP_ANON | MAP_PRIVATE, -1, 0); in main()
Dignored-interceptors-mmap.cc22 MAP_PRIVATE|MAP_ANON, -1, 0); in mmap_and_ignore_reads_and_writes()
28 MAP_PRIVATE|MAP_ANON, -1, 0); in mmap_and_ignore_reads_and_writes()
/external/linux-kselftest/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()
/external/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c120 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in test_enomem1()
144 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in test_enomem2()
173 MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in test_eperm()
/external/ltp/testcases/kernel/mem/vma/
Dvma01.c96 t = mmap(p, 3 * ps, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in check_vma()
107 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in check_vma()
153 t = mmap(NULL, 9 * ps, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in create_bighole()
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress05.c180 MAP_FILE | MAP_PRIVATE | MAP_FIXED, fd, in main()
187 MAP_FILE | MAP_PRIVATE | MAP_FIXED, fd, in main()
194 MAP_FILE | MAP_PRIVATE | MAP_FIXED, fd, 0) == (caddr_t) - 1) { in main()
/external/autotest/client/tests/memory_api/
Dmremaps.c37 MAP_PRIVATE | MAP_ANONYMOUS, in main()
65 MAP_PRIVATE | MAP_ANONYMOUS, in main()

12345678910>>...16