Home
last modified time | relevance | path

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

123

/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.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 …]
Dallocate_test.cpp105 ptr = mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
125 ptr = mmap(NULL, 4096, PROT_READ, MAP_SHARED, map_fd, 0); in TEST_F()
/system/extras/verity/fec/
Dimage.cpp86 if (ctx->mmap) { in image_free()
160 void *p = mmap(NULL, (size_t)ctx->inp_size, flags, MAP_SHARED, fd, 0); in mmap_image_load()
303 if (ctx->mmap) { in image_load()
314 if (ctx->inplace && ctx->mmap) { in image_save()
361 void *p = mmap(NULL, fec_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in mmap_image_ecc_new()
393 if (ctx->mmap) { in image_ecc_new()
465 if (!ctx->mmap && !android::base::ReadFully(fd, ctx->fec, ctx->fec_size)) { in image_ecc_load()
489 if (ctx->mmap) { in image_ecc_save()
509 if (!ctx->mmap) { in image_ecc_save()
Dimage.h42 bool mmap; member
/system/extras/perfprofd/quipper/
Dperf_utils.cc122 offset = sizeof(event.mmap) - sizeof(event.mmap.filename) + in GetPerfSampleDataOffset()
123 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()
438 dso_info.name = raw_event->mmap.filename; in MapIPAndPidAndGetNameAndOffset()
/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/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/simpleperf/
Devent_attr.cpp83 attr.mmap = 1; in CreateDefaultPerfEventAttr()
132 attr.mmap, attr.comm, attr.freq); in DumpPerfEventAttr()
/system/connectivity/apmanager/init/
Dapmanager-seccomp-mips.policy19 mmap: 1
Dapmanager-seccomp-amd64.policy46 mmap: 1
/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.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/sepolicy/tools/sepolicy-analyze/
Dutils.c42 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in load_policy()
/system/connectivity/shill/shims/
Dnfqueue-seccomp-amd64.policy18 mmap: 1
Dnfqueue-seccomp-mips.policy30 mmap: 1
/system/extras/memory_replay/
DPointers.cpp35 void* memory = mmap(nullptr, pointers_size_, PROT_READ | PROT_WRITE, in Pointers()
/system/tpm/trunks/
Dtrunksd-seccomp-arm64.policy58 mmap: 1
Dtrunksd-seccomp-x86_64.policy63 mmap: 1
/system/tpm/attestation/server/
Dattestationd-seccomp-amd64.policy72 mmap: 1

123