Home
last modified time | relevance | path

Searched refs:PROT_READ (Results 1 – 25 of 44) sorted by relevance

12

/system/core/libion/tests/
Dinvalid_values_test.cpp121 int ret = ion_map(0, m_validHandle, 4096, PROT_READ, 0, 0, &ptr, &map_fd); in TEST_F()
124 EXPECT_EQ(-EBADF, ion_map(-1, m_validHandle, 4096, PROT_READ, 0, 0, &ptr, &map_fd)); in TEST_F()
126 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, 0, 4096, PROT_READ, 0, 0, &ptr, &map_fd)); in TEST_F()
128 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, m_badHandle, 4096, PROT_READ, 0, 0, &ptr, &map_fd)); in TEST_F()
130 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, m_validHandle, 0, PROT_READ, 0, 0, &ptr, &map_fd)); in TEST_F()
134 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, m_validHandle, 4096, PROT_READ, 0, -1, &ptr, &map_fd)); in TEST_F()
136 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, m_validHandle, 4096, PROT_READ, 0, 0, NULL, &map_fd)); in TEST_F()
138 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, m_validHandle, 4096, PROT_READ, 0, 0, &ptr, NULL)); in TEST_F()
Dmap_test.cpp42 …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()
Dexit_test.cpp102 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()
Ddevice_test.cpp148 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 …]
Dformerly_valid_handle_test.cpp55 ASSERT_EQ(-EINVAL, ion_map(m_ionFd, m_handle, 4096, PROT_READ, 0, 0, &ptr, &map_fd)); in TEST_F()
Dallocate_test.cpp125 ptr = mmap(NULL, 4096, PROT_READ, MAP_SHARED, map_fd, 0); in TEST_F()
/system/core/include/backtrace/
DBacktraceMap.h25 #define PROT_READ 0x1 macro
70 bool IsReadable(uintptr_t pc) { return GetFlags(pc) & PROT_READ; } in IsReadable()
/system/core/libbacktrace/
DBacktracePtrace.cpp57 if (!BacktraceMap::IsValid(map) || !(map.flags & PROT_READ)) { in ReadWord()
72 if (!BacktraceMap::IsValid(map) || !(map.flags & PROT_READ)) { in Read()
DBacktraceCurrent.cpp46 if (BacktraceMap::IsValid(map) && map.flags & PROT_READ) { in ReadWord()
59 if (!BacktraceMap::IsValid(map) || !(map.flags & PROT_READ)) { in Read()
DBacktraceMap.cpp76 map->flags |= PROT_READ;
/system/bt/osi/test/
DAlarmTestHarness.cpp107 void *lock_file = mmap(nullptr, lock_stat.st_size, PROT_READ, in WakeLockHeld()
110 void *unlock_file = mmap(nullptr, unlock_stat.st_size, PROT_READ, in WakeLockHeld()
/system/extras/kexec_tools/
Dkexecload.c135 … atag_buffer = (char *) mmap(NULL, atag_size, PROT_READ, MAP_POPULATE | MAP_PRIVATE, atag_file, 0); in main()
136 …zimage_buffer = (char *) mmap(NULL, zimage_size, PROT_READ, MAP_POPULATE | MAP_PRIVATE, zimage_fil… in main()
/system/core/debuggerd/test/
Dtombstone_test.cpp138 map.flags = PROT_READ; in TEST_F()
215 map.flags = PROT_READ; in TEST_F()
236 map.flags = PROT_READ | PROT_WRITE | PROT_EXEC; in TEST_F()
290 map.flags = PROT_READ | PROT_WRITE | PROT_EXEC; in TEST_F()
346 map.flags = PROT_READ | PROT_WRITE | PROT_EXEC; in TEST_F()
402 map.flags = PROT_READ | PROT_WRITE | PROT_EXEC; in TEST_F()
456 map.flags = PROT_READ | PROT_WRITE | PROT_EXEC; in TEST_F()
/system/extras/tests/memtest/
Dmemtest.cpp139 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/
Dmmap_test.c25 buf = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mmap_test()
Dthrashing_test.c43 bufs[i] = mmap(NULL, filesize, PROT_READ, MAP_PRIVATE, fds[i], 0); in thrashing_test()
Dpageinout_test.c36 buf = mmap(NULL, file_size, PROT_READ, MAP_PRIVATE, fd, 0); in pageinout_test()
/system/core/libion/
Dion_test.c34 int prot = PROT_READ | PROT_WRITE;
246 map_flags |= strstr(optarg, "PROT_READ") ? PROT_READ: 0; in main()
/system/sepolicy/tools/sepolicy-analyze/
Dutils.c42 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in load_policy()
/system/core/toolbox/
Dr.c70 void* page = mmap64(0, mmap_size, PROT_READ | PROT_WRITE, in main()
/system/extras/memory_replay/
DPointers.cpp35 void* memory = mmap(nullptr, pointers_size_, PROT_READ | PROT_WRITE, in Pointers()
DThreads.cpp54 void* memory = mmap(nullptr, data_size_, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in Threads()
/system/core/libmemunreachable/
DPtracerThread.cpp41 int prot = PROT_READ | PROT_WRITE; in Stack()
/system/extras/tests/framebuffer/
Drefresh.c124 PROT_READ | PROT_WRITE, in main()
/system/core/libpixelflinger/codeflinger/
DCodeCache.cpp90 PROT_READ | PROT_WRITE | PROT_EXEC, in getMspace()

12