/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/python/cpython3/Lib/test/ |
D | test_mmap.py | 12 mmap = import_module('mmap') variable 14 PAGESIZE = mmap.PAGESIZE 39 m = mmap.mmap(f.fileno(), 2 * PAGESIZE) 128 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ) 181 m = mmap.mmap(f.fileno(), mapsize+1) 201 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_WRITE) 215 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_COPY) 230 self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize, access=4) 235 self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize, 236 flags=mmap.MAP_PRIVATE, [all …]
|
/external/perf_data_converter/src/quipper/ |
D | huge_page_deducer.cc | 132 const MMapEvent& mmap = events.Get(i).mmap_event(); in FindRange() local 135 prev_mmap = &mmap; in FindRange() 139 if (prev_mmap->filename() != mmap.filename()) { in FindRange() 143 if (start != i && !IsContiguous(*prev_mmap, mmap)) { in FindRange() 148 if (mmap.pgoff() != 0) { in FindRange() 151 CHECK(mmap.pgoff() == 0 || !IsAnon(mmap)) in FindRange() 153 prev_mmap = &mmap; in FindRange() 188 MMapEvent* mmap = event->mutable_mmap_event(); in UpdateRangeFromNext() local 191 if (IsAnon(*mmap)) { in UpdateRangeFromNext() 193 CHECK_EQ(mmap->pgoff(), 0u) << "//anon should have offset=0 for mmap"; in UpdateRangeFromNext() [all …]
|
D | perf_serializer.cc | 77 S(mmap); in SerializePerfEventAttr() 129 S(mmap); in DeserializePerfEventAttr() 495 const struct mmap_event& mmap = event.mmap; in SerializeMMapEvent() local 496 sample->set_pid(mmap.pid); in SerializeMMapEvent() 497 sample->set_tid(mmap.tid); in SerializeMMapEvent() 498 sample->set_start(mmap.start); in SerializeMMapEvent() 499 sample->set_len(mmap.len); in SerializeMMapEvent() 500 sample->set_pgoff(mmap.pgoff); in SerializeMMapEvent() 501 sample->set_filename(mmap.filename); in SerializeMMapEvent() 502 sample->set_filename_md5_prefix(Md5Prefix(mmap.filename)); in SerializeMMapEvent() [all …]
|
/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/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/perf_data_converter/src/ |
D | perf_data_handler.cc | 84 void UpdateMapsWithMMapEvent(const quipper::PerfDataProto_MMapEvent* mmap); 330 const quipper::PerfDataProto_MMapEvent* mmap) { in UpdateMapsWithMMapEvent() argument 331 if (mmap->len() == 0) { in UpdateMapsWithMMapEvent() 332 LOG(WARNING) << "bogus mapping: " << mmap->filename(); in UpdateMapsWithMMapEvent() 335 uint32 pid = mmap->pid(); in UpdateMapsWithMMapEvent() 345 if (mmap->filename() != "") { in UpdateMapsWithMMapEvent() 346 build_id_it = filename_to_build_id_.find(mmap->filename()); in UpdateMapsWithMMapEvent() 349 filename << std::hex << mmap->filename_md5_prefix(); in UpdateMapsWithMMapEvent() 357 &mmap->filename(), build_id, mmap->start(), mmap->start() + mmap->len(), in UpdateMapsWithMMapEvent() 358 mmap->pgoff(), mmap->filename_md5_prefix()); in UpdateMapsWithMMapEvent() [all …]
|
/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/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/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/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 71 .. class:: mmap(fileno, length, flags=MAP_SHARED, prot=PROT_WRITE|PROT_READ, access=ACCESS_DEFAULT[… 75 descriptor *fileno*, and returns a mmap object. If *length* is ``0``, the [all …]
|
/external/syzkaller/pkg/report/testdata/linux/report/ |
D | 134 | 18 mmap(&(0x7f0000000000/0xfff000)=nil, 0xfff000, 0x3, 0x32, 0xffffffffffffffff, 0x0) 23 mmap(&(0x7f0000000000/0x788000)=nil, 0x788000, 0x3, 0x32, 0xffffffffffffffff, 0x0) 24 mmap(&(0x7f0000788000/0x1000)=nil, 0x1000, 0x3, 0x32, 0xffffffffffffffff, 0x0) 25 mmap(&(0x7f0000789000/0x1000)=nil, 0x1000, 0x3, 0x32, 0xffffffffffffffff, 0x0) 26 mmap(&(0x7f0000000000/0x8000)=nil, 0x8000, 0x3, 0x32, 0xffffffffffffffff, 0x0) 28 mmap(&(0x7f000078a000/0x1000)=nil, 0x1000, 0x3, 0x32, 0xffffffffffffffff, 0x0) 30 mmap(&(0x7f0000008000/0x1000)=nil, 0x1000, 0x3, 0x32, 0xffffffffffffffff, 0x0) 32 mmap(&(0x7f000078a000/0x1000)=nil, 0x1000, 0x3, 0x32, 0xffffffffffffffff, 0x0) 35 mmap(&(0x7f0000000000/0xfff000)=nil, 0xfff000, 0x3, 0x32, 0xffffffffffffffff, 0x0) 45 mmap(&(0x7f0000000000/0xfff000)=nil, 0xfff000, 0x3, 0x32, 0xffffffffffffffff, 0x0) [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/libtextclassifier/actions/ |
D | actions_jni.cc | 268 jstring GetLocalesFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetLocalesFromMmap() argument 269 if (!mmap->handle().ok()) { in GetLocalesFromMmap() 273 mmap->handle().start(), mmap->handle().num_bytes()); in GetLocalesFromMmap() 280 jint GetVersionFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetVersionFromMmap() argument 281 if (!mmap->handle().ok()) { in GetVersionFromMmap() 285 mmap->handle().start(), mmap->handle().num_bytes()); in GetVersionFromMmap() 292 jstring GetNameFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetNameFromMmap() argument 293 if (!mmap->handle().ok()) { in GetNameFromMmap() 297 mmap->handle().start(), mmap->handle().num_bytes()); in GetNameFromMmap() 391 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() local [all …]
|
/external/autotest/server/site_tests/video_VDAStress/ |
D | output_test_video_params.py | 23 import mmap 35 mm = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) 49 mm = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
|
/external/libtextclassifier/annotator/ |
D | annotator_jni.cc | 357 jstring GetLocalesFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetLocalesFromMmap() argument 358 if (!mmap->handle().ok()) { in GetLocalesFromMmap() 362 mmap->handle().start(), mmap->handle().num_bytes()); in GetLocalesFromMmap() 369 jint GetVersionFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetVersionFromMmap() argument 370 if (!mmap->handle().ok()) { in GetVersionFromMmap() 374 mmap->handle().start(), mmap->handle().num_bytes()); in GetVersionFromMmap() 381 jstring GetNameFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetNameFromMmap() argument 382 if (!mmap->handle().ok()) { in GetNameFromMmap() 386 mmap->handle().start(), mmap->handle().num_bytes()); in GetNameFromMmap() 650 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() local [all …]
|
/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/u-boot/arch/arm/cpu/arm926ejs/armada100/ |
D | dram.c | 31 struct armd1ddr_map_registers mmap[2]; member 42 u32 CS_valid = 0x01 & readl(&ddr_regs->mmap[chip_sel].cs); in armd1_sdram_base() 47 result = readl(&ddr_regs->mmap[chip_sel].cs) & 0xFF800000; in armd1_sdram_base() 59 u32 CS_valid = 0x01 & readl(&ddr_regs->mmap[chip_sel].cs); in armd1_sdram_size() 64 result = readl(&ddr_regs->mmap[chip_sel].cs); in armd1_sdram_size()
|
/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/python/cpython3/Lib/multiprocessing/ |
D | heap.py | 11 import mmap 38 buf = mmap.mmap(-1, size, tagname=name) 55 self.buffer = mmap.mmap(-1, self.size, tagname=self.name) 78 self.buffer = mmap.mmap(self.fd, self.size) 108 def __init__(self, size=mmap.PAGESIZE): 131 length = self._roundup(max(self._size, size), mmap.PAGESIZE)
|
/external/swiftshader/third_party/LLVM/autoconf/m4/ |
D | func_mmap_file.m4 | 2 # Check for the ability to mmap a file. 5 [AC_CACHE_CHECK(for mmap of files, 16 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 23 AC_DEFINE([HAVE_MMAP_FILE],[],[Define if mmap() can map files into memory])
|
/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/skia/third_party/icu/ |
D | make_data_cpp.py | 16 import mmap 22 mm = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
|