Home
last modified time | relevance | path

Searched refs:mmap (Results 1 – 25 of 68) sorted by relevance

123

/system/media/audio_utils/tests/
Dfifo_multiprocess.cpp46 audio_utils_fifo_index *frontIndex = (audio_utils_fifo_index *) mmap(NULL, in main()
51 audio_utils_fifo_index *rearIndex = (audio_utils_fifo_index *) mmap(NULL, in main()
56 int16_t *data = (int16_t *) mmap(NULL, sizeof(audio_utils_fifo_index), PROT_READ | PROT_WRITE, in main()
79 frontIndex = (audio_utils_fifo_index *) mmap((char *) frontIndex + pageSize * 4, in main()
142 rearIndex = (audio_utils_fifo_index *) mmap((char *) rearIndex + pageSize * 4, in main()
153 data = (int16_t *) mmap((char *) data + pageSize * 8, BUFFER_SIZE, PROT_READ, in main()
/system/core/libion/tests/
Dmap_test.cpp70 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.cpp149 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
184 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
213 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
246 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
275 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
310 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
339 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
374 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
404 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
439 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
[all …]
Dallocate_test.cpp106 ptr = mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
126 ptr = mmap(NULL, 4096, PROT_READ, MAP_SHARED, map_fd, 0); in TEST_F()
/system/extras/perfprofd/quipper/
Dperf_utils.cc123 offset = sizeof(event.mmap) - sizeof(event.mmap.filename) + in GetPerfSampleDataOffset()
124 GetUint64AlignedStringLength(event.mmap.filename); in GetPerfSampleDataOffset()
Dperf_parser.cc165 VLOG(1) << "MMAP: " << event.mmap.filename; in ProcessEvents()
168 CHECK(MapMmapEvent(&event.mmap, i)) << "Unable to map MMAP event!"; in ProcessEvents()
173 dso_info.name = event.mmap.filename; in ProcessEvents()
446 dso_info.name = raw_event->mmap.filename; in MapIPAndPidAndGetNameAndOffset()
/system/core/libcutils/tests/
DAshmemTest.cpp33 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, 0); in TestMmap()
38 EXPECT_EQ(MAP_FAILED, mmap(nullptr, size, prot, MAP_SHARED, fd, 0)); in TestProtDenied()
85 void *region2 = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in TEST()
156 void *region = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd[i], 0); in TEST()
/system/bt/osi/test/
Dwakelock_test.cc104 mmap(nullptr, lock_stat.st_size, PROT_READ, MAP_PRIVATE, lock_fd, 0); in IsFileWakeLockAcquired()
106 void* unlock_file = mmap(nullptr, unlock_stat.st_size, PROT_READ, in IsFileWakeLockAcquired()
/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/libhidl/transport/memory/1.0/default/
DAshmemMapper.cpp36 void* data = mmap(0, mem.size(), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in mapMemory()
/system/extras/simpleperf/
Dperf_clock.cpp65 mmap(NULL, 4096, PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in ThreadA()
109 attr.mmap = 0; in GetClockDiff()
Devent_attr.cpp83 attr.mmap = 1; in CreateDefaultPerfEventAttr()
125 attr.mmap, attr.comm, attr.freq); in DumpPerfEventAttr()
/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.c44 bufs[i] = mmap(NULL, filesize, PROT_READ, MAP_PRIVATE, fds[i], 0); in thrashing_test()
Dpageinout_test.c37 buf = mmap(NULL, file_size, PROT_READ, MAP_PRIVATE, fd, 0); in pageinout_test()
/system/nvram/hal/
Dfake-nvram-seccomp-arm64.policy45 mmap: 1
Dfake-nvram-seccomp-x86_64.policy45 mmap: 1
/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/libion/
Dion_test.c144 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); in ion_share_test()
201 ptr = mmap(NULL, len, prot, map_flags, recv_fd, 0); in ion_share_test()
/system/tpm/trunks/
Dtrunksd-seccomp-amd64.policy63 mmap: 1
Dtrunksd-seccomp-arm64.policy58 mmap: 1
Dtrunksd-seccomp-x86_64.policy63 mmap: 1
/system/extras/memory_replay/
DPointers.cpp35 void* memory = mmap(nullptr, pointers_size_, PROT_READ | PROT_WRITE, in Pointers()

123