/system/core/libion/tests/ |
D | map_test.cpp | 42 …ASSERT_EQ(0, ion_map(m_ionFd, handle, size, PROT_READ | PROT_WRITE, MAP_SHARED, 0, &ptr, &map_fd)); in TEST_F() 70 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 92 … ptr = (unsigned char *)mmap(NULL, PAGE_SIZE * 2, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 100 …ptr = (unsigned char *)mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, PAGE_SIZE… in TEST_F() 126 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 152 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
|
D | exit_test.cpp | 102 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 125 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 149 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 172 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 196 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 219 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
|
D | device_test.cpp | 148 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 185 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 216 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 251 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 282 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 319 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 350 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 387 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 419 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 456 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() [all …]
|
D | allocate_test.cpp | 105 ptr = mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
|
/system/core/debuggerd/test/ |
D | tombstone_test.cpp | 175 map.flags = PROT_WRITE; in TEST_F() 222 map.flags = PROT_WRITE; in TEST_F() 236 map.flags = PROT_READ | PROT_WRITE | PROT_EXEC; in TEST_F() 276 map.flags = PROT_WRITE; in TEST_F() 290 map.flags = PROT_READ | PROT_WRITE | PROT_EXEC; in TEST_F() 332 map.flags = PROT_WRITE; in TEST_F() 346 map.flags = PROT_READ | PROT_WRITE | PROT_EXEC; in TEST_F() 388 map.flags = PROT_WRITE; in TEST_F() 402 map.flags = PROT_READ | PROT_WRITE | PROT_EXEC; in TEST_F() 442 map.flags = PROT_WRITE; in TEST_F() [all …]
|
/system/core/include/backtrace/ |
D | BacktraceMap.h | 26 #define PROT_WRITE 0x2 macro 71 bool IsWritable(uintptr_t pc) { return GetFlags(pc) & PROT_WRITE; } in IsWritable()
|
/system/extras/tests/memtest/ |
D | memtest.cpp | 139 void* addr1 = mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in madvise_test() 158 void* addr2 = mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in madvise_test()
|
/system/extras/tests/pagingtest/ |
D | mmap_test.c | 25 buf = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mmap_test()
|
D | pagingtest.c | 45 buf = mmap(NULL, size, PROT_WRITE, MAP_SHARED, fd, 0); in create_tmp_file()
|
/system/core/libion/ |
D | ion_test.c | 34 int prot = PROT_READ | PROT_WRITE; 247 map_flags |= strstr(optarg, "PROT_WRITE") ? PROT_WRITE: 0; in main()
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | utils.c | 42 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in load_policy()
|
/system/core/toolbox/ |
D | r.c | 70 void* page = mmap64(0, mmap_size, PROT_READ | PROT_WRITE, in main()
|
/system/extras/memory_replay/ |
D | Pointers.cpp | 35 void* memory = mmap(nullptr, pointers_size_, PROT_READ | PROT_WRITE, in Pointers()
|
D | Threads.cpp | 54 void* memory = mmap(nullptr, data_size_, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in Threads()
|
/system/core/libmemunreachable/ |
D | PtracerThread.cpp | 41 int prot = PROT_READ | PROT_WRITE; in Stack()
|
/system/core/libbacktrace/ |
D | BacktraceMap.cpp | 79 map->flags |= PROT_WRITE;
|
/system/extras/tests/framebuffer/ |
D | refresh.c | 124 PROT_READ | PROT_WRITE, in main()
|
D | fb_test.c | 88 bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in get_framebuffer()
|
/system/core/libpixelflinger/codeflinger/ |
D | CodeCache.cpp | 90 PROT_READ | PROT_WRITE | PROT_EXEC, in getMspace()
|
/system/core/debuggerd/ |
D | crasher.c | 175 … char* map = mmap(NULL, sizeof(int), PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); in do_action()
|
/system/extras/simpleperf/ |
D | event_fd.cpp | 112 void* mmap_addr = mmap(nullptr, mmap_len, PROT_READ | PROT_WRITE, MAP_SHARED, perf_event_fd_, 0); in MmapContent()
|
/system/extras/mmap-perf/ |
D | mmapPerf.cpp | 66 m_ptr = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, m_fileFd.get(), 0);
|
/system/extras/tests/directiotest/ |
D | directiotest.c | 54 void *ret = mmap(NULL, size, PROT_READ | PROT_WRITE, in pagealign_alloc()
|
/system/core/libutils/ |
D | FileMap.cpp | 189 prot |= PROT_WRITE; in create()
|
/system/core/liblog/ |
D | event_tag_map.c | 90 newTagMap->mapAddr = mmap(NULL, end, PROT_READ | PROT_WRITE, MAP_PRIVATE, in android_openEventTagMap()
|