/external/python/cpython3/Lib/test/ |
D | test_mmap.py | 12 mmap = import_module('mmap') variable 14 PAGESIZE = mmap.PAGESIZE 40 m = mmap.mmap(f.fileno(), 2 * PAGESIZE) 129 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ) 182 m = mmap.mmap(f.fileno(), mapsize+1) 202 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_WRITE) 216 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_COPY) 231 self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize, access=4) 236 self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize, 237 flags=mmap.MAP_PRIVATE, [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_mmap.py | 6 mmap = import_module('mmap') variable 8 PAGESIZE = mmap.PAGESIZE 33 m = mmap.mmap(f.fileno(), 2 * PAGESIZE) 124 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ) 179 m = mmap.mmap(f.fileno(), mapsize+1) 201 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_WRITE) 217 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_COPY) 232 self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize, access=4) 238 self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize, 239 flags=mmap.MAP_PRIVATE, [all …]
|
/external/strace/tests-mx32/ |
D | mmap.test | 44 for n in mmap mmap2; do 50 mmap=mmap 52 mmap=mmap2 57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap 59 run_prog "../$NAME" $mmap > /dev/null 61 sed -n "/^$mmap(NULL, 0, \(0 \/\* PROT_NONE \*\/\|0\|PROT_NONE\),/,\$p" < "$LOG" > "$OUT"
|
/external/strace/tests-m32/ |
D | mmap.test | 44 for n in mmap mmap2; do 50 mmap=mmap 52 mmap=mmap2 57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap 59 run_prog "../$NAME" $mmap > /dev/null 61 sed -n "/^$mmap(NULL, 0, \(0 \/\* PROT_NONE \*\/\|0\|PROT_NONE\),/,\$p" < "$LOG" > "$OUT"
|
/external/strace/tests/ |
D | mmap.test | 44 for n in mmap mmap2; do 50 mmap=mmap 52 mmap=mmap2 57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap 59 run_prog "../$NAME" $mmap > /dev/null 61 sed -n "/^$mmap(NULL, 0, \(0 \/\* PROT_NONE \*\/\|0\|PROT_NONE\),/,\$p" < "$LOG" > "$OUT"
|
/external/arm-trusted-firmware/plat/arm/common/ |
D | arm_bl1_fwu.c | 54 bl1_mem_info_t *mmap; in bl1_plat_mem_check() local 69 mmap = fwu_addr_map_secure; in bl1_plat_mem_check() 71 mmap = fwu_addr_map_non_secure; in bl1_plat_mem_check() 73 while (mmap[index].mem_size) { in bl1_plat_mem_check() 74 if ((mem_base >= mmap[index].mem_base) && in bl1_plat_mem_check() 76 <= (mmap[index].mem_base + in bl1_plat_mem_check() 77 mmap[index].mem_size))) in bl1_plat_mem_check()
|
/external/ltp/testcases/kernel/device-drivers/agp/kernel_space/ |
D | str_agp.h | 153 #define OUTREG64(mmap, addr, val) __raw_writeq((val), (mmap)+(addr)) argument 154 #define OUTREG32(mmap, addr, val) __raw_writel((val), (mmap)+(addr)) argument 155 #define OUTREG16(mmap, addr, val) __raw_writew((val), (mmap)+(addr)) argument 156 #define OUTREG8(mmap, addr, val) __raw_writeb((val), (mmap)+(addr)) argument 158 #define INREG64(mmap, addr) __raw_readq((mmap)+(addr)) argument 159 #define INREG32(mmap, addr) __raw_readl((mmap)+(addr)) argument 160 #define INREG16(mmap, addr) __raw_readw((mmap)+(addr)) argument 161 #define INREG8(mmap, addr) __raw_readb((mmap)+(addr)) argument
|
/external/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/ |
D | main.cpp | 37 intstr_mmap mmap; in main() local 38 mmap.emplace(1,"hello"); in main() 39 mmap.emplace(2,"hello"); in main() 40 mmap.emplace(2,"world"); in main() 41 mmap.emplace(3,"this"); in main() 42 mmap.emplace(3,"this"); in main() 43 mmap.emplace(3,"this"); in main()
|
/external/python/cpython2/Modules/_ctypes/libffi/ |
D | acinclude.m4 | 1 # mmap(2) blacklisting. Some platforms provide the mmap library routine 7 AC_CHECK_FUNC([mmap], [libffi_func_mmap=yes], [libffi_func_mmap=no]) 14 AC_CACHE_CHECK([whether read-only mmap of a plain file works], 17 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a 27 AC_CACHE_CHECK([whether mmap from /dev/zero works], 29 [# Add a system to this blacklist if it has mmap() but /dev/zero 64 AC_CACHE_CHECK([whether mmap with MAP_ANON(YMOUS) works], 66 [# Add a system to this blacklist if it has mmap() and MAP_ANON or 67 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 82 [Define if read-only mmap of a plain file works.]) [all …]
|
/external/llvm-project/clang/test/Analysis/ |
D | mmap-writeexec.c | 18 void *mmap(void *, size_t, int, int, int, long); 23 void *a = mmap(NULL, 16, PROT_READ | PROT_EXEC, MAP_PRIVATE | MAP_ANON, -1, 0); // no-warning in f1() 24 …void *b = mmap(a, 16, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED | MAP_ANON, -1, 0); // no-wa… in f1() 25 …void *c = mmap(NULL, 32, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANON, -1, 0); // ex… in f1() 34 callm = mmap; in f2() 41 void *p = mmap(NULL, 1024, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); // no-warning in f3()
|
/external/python/cpython2/Doc/library/ |
D | mmap.rst | 2 :mod:`mmap` --- Memory-mapped file support 5 .. module:: mmap 10 Unlike normal string objects, however, these are mutable. You can use mmap 18 A memory-mapped file is created by the :class:`~mmap.mmap` constructor, which is 37 Windows mmap returns a write-through mapping. The initial memory values for 49 mmap.mmap has formerly been a factory function creating mmap objects. Now 50 mmap.mmap is the class itself. 52 .. class:: mmap(fileno, length[, tagname[, access[, offset]]]) 55 file handle *fileno*, and creates a mmap object. If *length* is larger 69 *offset* may be specified as a non-negative integer offset. mmap references [all …]
|
/external/python/cpython3/Doc/library/ |
D | mmap.rst | 1 :mod:`mmap` --- Memory-mapped file support 4 .. module:: mmap 10 :term:`file objects <file object>`. You can use mmap objects in most places 17 A memory-mapped file is created by the :class:`~mmap.mmap` constructor, which is 36 and Windows. If *access* is not specified, Windows mmap returns a 49 .. class:: mmap(fileno, length, tagname=None, access=ACCESS_DEFAULT[, offset]) 52 file handle *fileno*, and creates a mmap object. If *length* is larger 66 *offset* may be specified as a non-negative integer offset. mmap references 70 .. audit-event:: mmap.__new__ fileno,length,access,offset mmap.mmap 72 .. class:: mmap(fileno, length, flags=MAP_SHARED, prot=PROT_WRITE|PROT_READ, access=ACCESS_DEFAULT[… [all …]
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | map_fixed_noreplace.c | 44 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 65 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 85 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 106 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 126 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 146 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 166 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 186 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
|
/external/igt-gpu-tools/tests/ |
D | prime_mmap.c | 90 ptr2 = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_correct() 117 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_map_unmap() 123 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_map_unmap() 146 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_reprime() 155 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_reprime() 179 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_forked() 206 ptr = mmap(NULL, BO_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd, 0); in test_correct_cpu_write() 236 ptr = mmap(NULL, BO_SIZE, PROT_READ | PROT_WRITE , MAP_SHARED, dma_buf_fd, 0); in test_forked_cpu_write() 264 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_refcounting() 285 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_dup() [all …]
|
/external/libtextclassifier/native/actions/ |
D | actions_jni.cc | 377 JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetLocalesFromMmap() argument 378 if (!mmap->handle().ok()) { in GetLocalesFromMmap() 382 mmap->handle().start(), mmap->handle().num_bytes()); in GetLocalesFromMmap() 389 jint GetVersionFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetVersionFromMmap() argument 390 if (!mmap->handle().ok()) { in GetVersionFromMmap() 394 mmap->handle().start(), mmap->handle().num_bytes()); in GetVersionFromMmap() 402 JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetNameFromMmap() argument 403 if (!mmap->handle().ok()) { in GetNameFromMmap() 407 mmap->handle().start(), mmap->handle().num_bytes()); in GetNameFromMmap() 536 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() local [all …]
|
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | mmap_write_exec.cpp | 14 char *p = (char *)mmap(0, 1024, PROT_READ | PROT_WRITE | PROT_EXEC, in main() 20 char *q = (char *)mmap(p, 64, PROT_READ | PROT_WRITE, in main() 27 char *a = (char *)mmap(0, 1024, PROT_READ | PROT_WRITE, in main() 29 char *b = (char *)mmap(a, 64, PROT_READ | PROT_WRITE, in main()
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/ |
D | cpuset_memory_testset.sh | 73 cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & 90 cpuset_memory_test --mmap-file >"$MEMORY_RESULT" & 124 cpuset_memory_test --mmap-lock1 >"$MEMORY_RESULT" & 141 cpuset_memory_test --mmap-lock2 >"$MEMORY_RESULT" & 184 cpuset_memory_test --mmap-file --hugepage -s $HUGEPAGESIZE >"$MEMORY_RESULT" & 250 cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & 267 cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & 310 cpuset_memory_test --mmap-anon --check >"$MEMORY_RESULT" & 355 cpuset_memory_test --mmap-anon --check >"$MEMORY_RESULT" & 407 cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & [all …]
|
/external/python/cpython2/Lib/multiprocessing/ |
D | heap.py | 36 import mmap 64 self.buffer = mmap.mmap(-1, self.size, tagname=self.name) 74 self.buffer = mmap.mmap(-1, self.size, tagname=self.name) 82 self.buffer = mmap.mmap(-1, size) 94 def __init__(self, size=mmap.PAGESIZE): 117 length = self._roundup(max(self._size, size), mmap.PAGESIZE)
|
/external/toolchain-utils/heatmaps/ |
D | heatmap_generator.py | 46 def merge(self, mmap): argument 54 if self.start_address == mmap.start_address: 55 assert self.size >= mmap.size, \ 57 self.size, mmap.size) 64 assert self.start_address < mmap.start_address, \ 66 'process(%x).' % (self.start_address, mmap.start_address) 68 assert self.start_address + self.size >= mmap.start_address + mmap.size, \ 200 pid, mmap = self._parse_perf_record(line) 208 self.processes[pid].merge(mmap) 210 self.processes[pid] = mmap
|
/external/skia/third_party/icu/ |
D | make_data_cpp.py | 18 import mmap 24 mm = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
|
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | mmap.c | 59 bss_mmaped = mmap(NULL, bss_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 67 map_mmaped = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 124 map_mmaped = mmap(NULL, map_sz, PROT_READ, MAP_SHARED, data_map_fd, 0); in test_mmap() 137 p = mmap(NULL, map_sz, flags, MAP_SHARED, data_map_fd, 0); in test_mmap() 152 tmp1 = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 171 tmp1 = mmap(NULL, 3 * page_size, PROT_READ, MAP_SHARED, in test_mmap() 184 tmp2 = mmap(tmp1 + page_size, page_size, PROT_READ, in test_mmap() 195 tmp2 = mmap(tmp1, 4 * page_size, PROT_READ, MAP_SHARED | MAP_FIXED, in test_mmap()
|
/external/autotest/client/cros/ |
D | memory_bandwidth_logger.py | 7 import mmap 78 self._mm = mmap.mmap(self._f.fileno(), 80 mmap.MAP_SHARED, 81 mmap.PROT_READ, 83 except mmap.error:
|
/external/libtextclassifier/native/annotator/ |
D | annotator_jni.cc | 441 JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetLocalesFromMmap() argument 442 if (!mmap->handle().ok()) { in GetLocalesFromMmap() 446 mmap->handle().start(), mmap->handle().num_bytes()); in GetLocalesFromMmap() 454 jint GetVersionFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetVersionFromMmap() argument 455 if (!mmap->handle().ok()) { in GetVersionFromMmap() 459 mmap->handle().start(), mmap->handle().num_bytes()); in GetVersionFromMmap() 467 JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetNameFromMmap() argument 468 if (!mmap->handle().ok()) { in GetNameFromMmap() 472 mmap->handle().start(), mmap->handle().num_bytes()); in GetNameFromMmap() 911 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() local [all …]
|
/external/python/cpython3/Lib/multiprocessing/ |
D | heap.py | 12 import mmap 42 buf = mmap.mmap(-1, size, tagname=name) 60 self.buffer = mmap.mmap(-1, self.size, tagname=self.name) 89 self.buffer = mmap.mmap(self.fd, self.size) 123 def __init__(self, size=mmap.PAGESIZE): 160 length = self._roundup(max(self._size, size), mmap.PAGESIZE)
|
/external/llvm-project/libc/src/sys/mman/linux/ |
D | CMakeLists.txt | 2 mmap 4 mmap.cpp 6 ../mmap.h
|