Home
last modified time | relevance | path

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

12345678910>>...44

/external/python/cpython3/Lib/test/
Dtest_mmap.py12 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/
Dtest_mmap.py6 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-m32/
Dmmap.test44 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-mx32/
Dmmap.test44 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/
Dmmap.test44 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/ltp/testcases/kernel/device-drivers/agp/kernel_space/
Dstr_agp.h153 #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/arm-trusted-firmware/plat/arm/common/
Darm_bl1_fwu.c54 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/libffi/
Dacinclude.m41 # 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/
Dacinclude.m41 # 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/Doc/library/
Dmmap.rst2 :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/
Dmmap.rst1 :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/libtextclassifier/native/actions/
Dactions_jni.cc313 JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetLocalesFromMmap() argument
314 if (!mmap->handle().ok()) { in GetLocalesFromMmap()
318 mmap->handle().start(), mmap->handle().num_bytes()); in GetLocalesFromMmap()
325 jint GetVersionFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetVersionFromMmap() argument
326 if (!mmap->handle().ok()) { in GetVersionFromMmap()
330 mmap->handle().start(), mmap->handle().num_bytes()); in GetVersionFromMmap()
338 JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetNameFromMmap() argument
339 if (!mmap->handle().ok()) { in GetNameFromMmap()
343 mmap->handle().start(), mmap->handle().num_bytes()); in GetNameFromMmap()
467 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() local
[all …]
/external/linux-kselftest/tools/testing/selftests/vm/
Dmap_fixed_noreplace.c44 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/
Dprime_mmap.c90 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/u-boot/arch/arm/cpu/arm926ejs/armada100/
Ddram.c31 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/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
Dcpuset_memory_testset.sh73 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/
Dheap.py36 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/
Dheatmap_generator.py46 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/
Dmake_data_cpp.py16 import mmap
22 mm = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dmmap.c59 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/libtextclassifier/native/annotator/
Dannotator_jni.cc409 JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetLocalesFromMmap() argument
410 if (!mmap->handle().ok()) { in GetLocalesFromMmap()
414 mmap->handle().start(), mmap->handle().num_bytes()); in GetLocalesFromMmap()
422 jint GetVersionFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetVersionFromMmap() argument
423 if (!mmap->handle().ok()) { in GetVersionFromMmap()
427 mmap->handle().start(), mmap->handle().num_bytes()); in GetVersionFromMmap()
435 JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetNameFromMmap() argument
436 if (!mmap->handle().ok()) { in GetNameFromMmap()
440 mmap->handle().start(), mmap->handle().num_bytes()); in GetNameFromMmap()
859 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() local
[all …]
/external/autotest/client/cros/
Dmemory_bandwidth_logger.py7 import mmap
78 self._mm = mmap.mmap(self._f.fileno(),
80 mmap.MAP_SHARED,
81 mmap.PROT_READ,
83 except mmap.error:
/external/crosvm/sys_util/src/
Dmmap.rs275 let addr = libc::mmap(addr, size, prot, flags, fd, offset); in try_mmap()
639 let mmap = MemoryMapping::new_protection(size, Protection::none().set_read())?; in new() localVariable
640 let addr = mmap.as_ptr(); in new()
641 let size = mmap.size(); in new()
642 std::mem::forget(mmap); in new()
723 let mmap = unsafe { in try_add() localVariable
740 self.maps.insert(offset, ManuallyDrop::new(mmap)); in try_add()
748 if let Some(mmap) = self.maps.remove(&offset) { in remove()
753 let mmap = unsafe { in remove() localVariable
755 mmap.as_ptr(), in remove()
[all …]
/external/honggfuzz/examples/externalfuzzers/
DlowBytesIncrease.py3 import os, sys, mmap
10 map = mmap.mmap(f.fileno(), 0)
DrangeFuzz.py3 import mmap
14 mapped = mmap.mmap(f.fileno(), 0)

12345678910>>...44