Home
last modified time | relevance | path

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

12345678910>>...21

/external/autotest/server/site_tests/video_VDAStress/
Doutput_test_video_params.py23 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/strace/xlat/
Dmmap_flags.in12 * the old pre-4.x "mmap()", which:
14 * only let you map devices with an "mmap" routine (e.g.,
21 * memory and which, and the 4.x "mmap()" which:
30 * It's not actually used in source code that calls "mmap()"; the
31 * "mmap()" routine adds it for you.
35 * and calls with it as "mmap()".
/external/llvm/autoconf/m4/
Dfunc_mmap_file.m42 # 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])
Dheader_mmap_anonymous.m42 # Check for anonymous mmap macros. This is modified from
13 [[mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);]])],
19 …AC_DEFINE([HAVE_MMAP_ANONYMOUS],[1],[Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, o…
/external/bison/m4/
Dmmap-anon.m41 # mmap-anon.m4 serial 10
7 # Detect how mmap can be used to create anonymous (not file-backed) memory
21 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
24 AC_CHECK_FUNC([mmap], [gl_have_mmap=yes], [gl_have_mmap=no])
45 [Define to a substitute value for mmap()'s MAP_ANONYMOUS flag.])
51 [Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including
/external/valgrind/memcheck/tests/
Dpointer-trace.c54 map = mmap(0, stepsize * 2, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANONYMOUS, -1, 0); in main()
59 map = mmap(0, stepsize * 2, PROT_WRITE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANONYMOUS, -1, 0); in main()
66 map = mmap(0, stepsize * 2, PROT_WRITE|PROT_READ, MAP_PRIVATE, fd, 0); in main()
72 map = mmap(0, 256*1024, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANONYMOUS, -1, 0); in main()
/external/valgrind/none/tests/amd64-linux/
Dmap_32bits.stderr.exp1 first mmap : 0x........
2 last mmap ok: 0x........
3 retry mmap ok: 0x........
/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/valgrind/none/tests/amd64/
Dnibz_bennee_mmap.c35 if ((p = mmap((void*)0x1F7F100000, 4096, PROT_READ|PROT_WRITE, in main()
46 if ((p = mmap((void*)0x1F7F101000, 4096, PROT_READ, in main()
52 if ((p = mmap((void*)0x1F7F101000, 4096, PROT_READ, in main()
/external/valgrind/memcheck/tests/x86-linux/
Dbug133694.c9 …if ((a1 = mmap((void *)0x200000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, … in main()
21 …if (mmap((void *)0x100000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0)… in main()
27 …if (mmap((void *)0x100000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) == MAP_FA… in main()
/external/autotest/client/site_tests/video_VEAPerf/
Dvideo_VEAPerf.py9 import mmap
94 mm = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
108 mm = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
/external/compiler-rt/lib/dfsan/
Ddfsan_interceptors.cc19 INTERCEPTOR(void *, mmap, void *addr, SIZE_T length, int prot, int flags, in INTERCEPTOR() argument
21 void *res = REAL(mmap)(addr, length, prot, flags, fd, offset); in INTERCEPTOR()
40 INTERCEPT_FUNCTION(mmap); in InitializeInterceptors()
/external/v8/src/base/platform/
Dplatform-solaris.cc58 void* mbase = mmap(NULL, msize, prot, MAP_PRIVATE | MAP_ANON, -1, 0); in Allocate()
92 void* reservation = mmap(OS::GetRandomMmapAddr(), in VirtualMemory()
164 void* result = mmap(OS::GetRandomMmapAddr(), in ReserveRegion()
179 if (MAP_FAILED == mmap(base, in CommitRegion()
192 return mmap(base, in UncommitRegion()
Dplatform-openbsd.cc61 void* mbase = mmap(addr, msize, prot, MAP_PRIVATE | MAP_ANON, -1, 0); in Allocate()
144 void* addr = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_PRIVATE, in SignalCodeMovingGC()
170 void* reservation = mmap(OS::GetRandomMmapAddr(), in VirtualMemory()
242 void* result = mmap(OS::GetRandomMmapAddr(), in ReserveRegion()
257 if (MAP_FAILED == mmap(base, in CommitRegion()
270 return mmap(base, in UncommitRegion()
Dplatform-macos.cc59 void* mbase = mmap(OS::GetRandomMmapAddr(), in Allocate()
132 void* reservation = mmap(OS::GetRandomMmapAddr(), in VirtualMemory()
204 void* result = mmap(OS::GetRandomMmapAddr(), in ReserveRegion()
221 if (MAP_FAILED == mmap(address, in CommitRegion()
234 return mmap(address, in UncommitRegion()
Dplatform-freebsd.cc62 void* mbase = mmap(NULL, msize, prot, MAP_PRIVATE | MAP_ANON, -1, 0); in Allocate()
139 void* reservation = mmap(OS::GetRandomMmapAddr(), in VirtualMemory()
211 void* result = mmap(OS::GetRandomMmapAddr(), in ReserveRegion()
226 if (MAP_FAILED == mmap(base, in CommitRegion()
239 return mmap(base, in UncommitRegion()
Dplatform-linux.cc138 void* mbase = mmap(addr, msize, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in Allocate()
222 void* addr = mmap(OS::GetRandomMmapAddr(), size, in SignalCodeMovingGC()
254 void* reservation = mmap(OS::GetRandomMmapAddr(), in VirtualMemory()
332 void* result = mmap(OS::GetRandomMmapAddr(), in ReserveRegion()
356 if (MAP_FAILED == mmap(base, in CommitRegion()
370 return mmap(base, in UncommitRegion()
Dplatform-qnx.cc112 void* mbase = mmap(addr, msize, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in Allocate()
196 void* reservation = mmap(OS::GetRandomMmapAddr(), in VirtualMemory()
268 void* result = mmap(OS::GetRandomMmapAddr(), in ReserveRegion()
283 if (MAP_FAILED == mmap(base, in CommitRegion()
297 return mmap(base, in UncommitRegion()
/external/elfutils/tests/
Drun-elfgetzdata.sh34 testrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgnu64 <<\EOF
58 testrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgnu64be <<\EOF
82 testrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgabi64 <<\EOF
106 testrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgabi64be <<\EOF
130 testrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgnu32 <<\EOF
154 testrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgnu32be <<\EOF
178 testrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgabi32 <<\EOF
202 testrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgabi32be <<\EOF
/external/autotest/client/site_tests/security_mprotect/src/
Dprot_exec.c36 if ((arearw = (int *)mmap(0, sizeof(int), in main()
42 if ((areaex = (int *)mmap(0, sizeof(int), in main()
47 if ((areaex = (int *)mmap(0, sizeof(int), in main()
/external/elfutils/lib/
Dcrc32_file.c52 void *mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, fd, 0); in crc32_file()
58 && (mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, in crc32_file()
75 } while (mmap (mapped, mapsize, PROT_READ, MAP_FIXED|MAP_PRIVATE, in crc32_file()
/external/valgrind/docs/internals/
Dsegments-seginfos.txt14 * mmap
28 which will be later mmaped by the client's ELF loader. If a new mmap
45 that Valgrind has to make its own mmap of each .so for reading
46 symtab information is because the client won't necessary mmap the
53 > than the range of its parent Segment? Or can you eg. mmap a whole
78 > Can a new mmap appear in the address range of an existing SegInfo?
89 > Load symbols following an mmap if:
102 covers the p_memsz of all PT_LOAD, mmap()s that much from the file [even if
105 mmap(,,,MAP_FIXED,,) each remaining PT_LOAD. This is done to overcome the
106 possibility that a kernel which randomizes the placement of mmap(0, ...)
/external/valgrind/memcheck/tests/x86-solaris/
Dscalar.stderr.exp90 Syscall param mmap(start) contains uninitialised byte(s)
93 Syscall param mmap(length) contains uninitialised byte(s)
96 Syscall param mmap(prot) contains uninitialised byte(s)
99 Syscall param mmap(flags) contains uninitialised byte(s)
102 Syscall param mmap(fd) contains uninitialised byte(s)
105 Syscall param mmap(offlo) contains uninitialised byte(s)
108 Syscall param mmap(offhi) contains uninitialised byte(s)
/external/valgrind/none/tests/
Dmap_unaligned.c10 if ( ( p1 = mmap( 0, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0 ) ) == MAP_FAILED ) in main()
25 …if ( ( p2 = mmap( p1 + 1, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0 ) ) == M… in main()
/external/autotest/client/tests/aio_dio_bugs/src/
Daio-free-ring-with-bogus-nr-pages.c46 map = mmap(NULL, 100, PROT_READ, MAP_ANONYMOUS|MAP_PRIVATE, in main()
50 map = mmap(NULL, 100, PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, in main()

12345678910>>...21