Searched defs:mmap (Results 1 - 25 of 33) sorted by relevance

12

/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dmalloc_hook_mmap_freebsd.h30 // Override mmap/munmap/mremap/sbrk to provide support for calling the
43 // Make sure mmap doesn't get #define'd away by <sys/mman.h>
44 #undef mmap macro
59 void* mmap(void *start, size_t length,int prot, int flags,
116 extern "C" void* mmap(void *start, size_t length, int prot, int flags,
H A Dmalloc_hook_mmap_linux.h33 // We define mmap() and mmap64(), which somewhat reimplements libc's mmap
35 // (which we're overriding with our mmap64() and mmap() wrappers) so we can't
72 // 64b and 32b have different calling conventions for mmap().
120 // have 64-bit mmap() support.
128 // Fall back to old 32-bit offset mmap() call
135 // Some Linux ports like ARM EABI Linux has no mmap, just mmap2.
151 // calls right into mmap and mmap64, so that the stack frames in the caller's
159 // Make sure mmap doesn't get #define'd away by <sys/mman.h>
160 # undef mmap macro
[all...]
H A Dsystem-alloc.cc45 #include <sys/mman.h> // for munmap, mmap, MADV_DONTNEED, etc
143 // The mmap top-down allocator will normally allocate below TASK_SIZE - gap,
144 // with a gap that depends on the max stack size. See x86/mm/mmap.c. We
154 // Give a random "hint" that is suitable for use with mmap(). This cannot make
155 // mmap fail, as the kernel will simply not follow the hint if it can't.
198 // Allocate |length| bytes of memory using mmap(). The memory will be
200 // Like mmap(), we will return MAP_FAILED on failure.
216 void* result = mmap(address_hint, length, PROT_READ|PROT_WRITE,
220 // If mmap() succeeded at a address_hint, our next mmap() wil
584 MmapSysAllocator *mmap = new (mmap_space) MmapSysAllocator(); local
[all...]
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Dmalloc_hook_mmap_freebsd.h30 // Override mmap/munmap/mremap/sbrk to provide support for calling the
43 // Make sure mmap doesn't get #define'd away by <sys/mman.h>
44 #undef mmap macro
59 void* mmap(void *start, size_t length,int prot, int flags,
116 extern "C" void* mmap(void *start, size_t length, int prot, int flags,
H A Dmalloc_hook_mmap_linux.h33 // We define mmap() and mmap64(), which somewhat reimplements libc's mmap
35 // (which we're overriding with our mmap64() and mmap() wrappers) so we can't
50 // 64b and 32b have different calling conventions for mmap().
96 // have 64-bit mmap() support.
104 // Fall back to old 32-bit offset mmap() call
111 // Some Linux ports like ARM EABI Linux has no mmap, just mmap2.
127 // calls right into mmap and mmap64, so that the stack frames in the caller's
135 // Make sure mmap doesn't get #define'd away by <sys/mman.h>
136 # undef mmap macro
[all...]
H A Dsystem-alloc.cc45 #include <sys/mman.h> // for munmap, mmap, MADV_DONTNEED, etc
118 // Page size is initialized on demand (only needed for mmap-based allocators)
139 "Whether mmap can be used to obtain memory.");
273 // Check if we should use mmap allocation.
278 // sbrk is used until the heap is exhausted (before mmap is used).
308 void* result = mmap(NULL, size + extra,
398 void *result = mmap(0, size + extra, PROT_WRITE|PROT_READ,
447 MmapSysAllocator *mmap = new (mmap_space) MmapSysAllocator(); local
450 // In 64-bit debug mode, place the mmap allocator first since it
459 sdef->SetChildAllocator(mmap,
[all...]
/external/openfst/src/include/fst/
H A Dmapped-file.h33 // mmap'ed files. If mmap equals NULL, then data represents an owned region of
34 // size bytes. Otherwise, mmap and size refer to the mapping and data is a
35 // casted pointer to a region contained within [mmap, mmap + size).
36 // If size is 0, then mmap refers and data refer to a block of memory managed
40 void *mmap; member in struct:fst::MemoryRegion
/external/libvpx/libvpx/examples/
H A Dexample_xma.c69 void my_mem_dtor(vpx_codec_mmap_t *mmap) { argument
71 printf("freeing segment %d\n", mmap->id);
73 free(mmap->priv);
156 vpx_codec_mmap_t mmap; local
159 res = vpx_codec_get_mem_map(&decoder, &mmap, &iter);
160 align = mmap.align ? mmap.align - 1 : 0;
165 mmap.id, mmap.sz, mmap
[all...]
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dtool.h31 event_op mmap, member in struct:perf_tool
H A Devlist.h43 struct perf_mmap *mmap; member in struct:perf_evlist
H A Devent.h174 struct mmap_event mmap; member in union:perf_event
H A Dpython.c72 static char pyrf_mmap_event__doc[] = PyDoc_STR("perf mmap event object.");
91 if (asprintf(&s, "{ type: mmap, pid: %u, tid: %u, start: %#" PRIx64 ", "
94 pevent->event.mmap.pid, pevent->event.mmap.tid,
95 pevent->event.mmap.start, pevent->event.mmap.len,
96 pevent->event.mmap.pgoff, pevent->event.mmap.filename) < 0) {
537 "mmap",
562 mmap local
[all...]
/external/libvpx/libvpx/vpx/src/
H A Dvpx_codec.c139 // mmap interface
141 vpx_codec_err_t vpx_mmap_alloc(vpx_codec_mmap_t *mmap) { argument
142 unsigned int align = mmap->align ? mmap->align - 1 : 0;
144 if (mmap->flags & VPX_CODEC_MEM_ZERO)
145 mmap->priv = calloc(1, mmap->sz + align);
147 mmap->priv = malloc(mmap->sz + align);
149 if (mmap
155 vpx_mmap_dtor(vpx_codec_mmap_t *mmap) argument
[all...]
H A Dvpx_decoder.c188 vpx_codec_mmap_t *mmap,
192 if (!ctx || !mmap || !iter || !ctx->iface)
197 res = ctx->iface->get_mmap(ctx, mmap, iter);
204 vpx_codec_mmap_t *mmap,
208 if (!ctx || !mmap || !ctx->iface)
215 for (i = 0; i < num_maps; i++, mmap++) {
216 if (!mmap->base)
219 /* Everything look ok, set the mmap in the decoder */
220 res = ctx->iface->set_mmap(ctx, mmap);
187 vpx_codec_get_mem_map(vpx_codec_ctx_t *ctx, vpx_codec_mmap_t *mmap, vpx_codec_iter_t *iter) argument
203 vpx_codec_set_mem_map(vpx_codec_ctx_t *ctx, vpx_codec_mmap_t *mmap, unsigned int num_maps) argument
/external/chromium_org/tools/android/heap_profiler/
H A Dheap_profiler_hooks_android.c53 real_mmap = (mmap_t) dlsym(RTLD_NEXT, "mmap");
107 // + Actual mmap/malloc hooks +
109 HEAP_PROFILER_EXPORT void* mmap( function
/external/chromium_org/tools/deep_memory_profiler/lib/
H A Dsorter.py56 def __init__(self, unit_id, committed, reserved, mmap, region,
60 self._mmap = mmap
74 def mmap(self): member in class:VMUnit
91 """Represents a Unit for a mmap'ed region."""
107 """Represents a Unit for a non-mmap'ed memory region on virtual memory."""
193 self._mmap = dct.get('mmap', None)
206 attributes.append('mmap: %s' % self._mmap)
221 if unit.mmap:
225 assert bucket.allocator_type == 'mmap'
/external/chromium_org/v8/tools/
H A Dstats-viewer.py37 import mmap namespace
73 # The handle created by mmap.mmap to the counters file. We need
120 self.shared_mmap = mmap.mmap(fileno, size, access=mmap.ACCESS_READ)
308 data: A handle to the memory-mapped file, as returned by mmap.mmap.
H A Dll_prof.py34 import mmap namespace
366 self.log = mmap.mmap(self.log_file.fileno(), 0, mmap.MAP_PRIVATE)
629 self.trace = mmap.mmap(self.trace_file.fileno(), 0, mmap.MAP_PRIVATE)
887 parser.add_option("--gc-fake-mmap",
889 help="gc fake mmap file [default: %default]")
/external/stlport/test/unit/
H A Dhash_test.cpp116 typedef hash_multimap<char, int, hash<char>,equal_to<char> > mmap; typedef
117 mmap m;
126 mmap::iterator i = m.find('X'); // Find first match.
143 mmap::iterator ite(m.begin());
144 mmap::const_iterator cite(m.begin());
H A Dmap_test.cpp79 typedef multimap<char, int, less<char> > mmap; typedef
80 mmap m;
90 mmap::iterator i = m.find('X'); // Find first match.
121 typedef multimap<int, char, less<int> > mmap; typedef
132 mmap m(array + 0, array + 6);
133 mmap::iterator i;
157 typedef multimap<int, char, less<int> > mmap; typedef
158 typedef mmap::value_type pair_type;
176 mmap m(array+0, array + 6);
179 mmap
[all...]
/external/chromium_org/sandbox/win/src/
H A Dpolicy_low_level.cc67 Mmap mmap; local
70 mmap[it->service].push_back(it->rule);
78 for (Mmap::iterator it = mmap.begin(); it != mmap.end(); ++it) {
/external/libvpx/libvpx/vp8/
H A Dvp8_dx_iface.c87 static void vp8_init_ctx(vpx_codec_ctx_t *ctx, const vpx_codec_mmap_t *mmap) argument
91 ctx->priv = mmap->base;
94 ctx->priv->alg_priv = mmap->base;
99 ctx->priv->alg_priv->mmaps[0] = *mmap;
132 vpx_codec_mmap_t mmap; local
134 mmap.id = vp8_mem_req_segs[0].id;
135 mmap.sz = sizeof(vpx_codec_alg_priv_t);
136 mmap.align = vp8_mem_req_segs[0].align;
137 mmap.flags = vp8_mem_req_segs[0].flags;
139 res = vpx_mmap_alloc(&mmap);
623 vp8_xma_get_mmap(const vpx_codec_ctx_t *ctx, vpx_codec_mmap_t *mmap, vpx_codec_iter_t *iter) argument
660 vp8_xma_set_mmap(vpx_codec_ctx_t *ctx, const vpx_codec_mmap_t *mmap) argument
[all...]
/external/chromium_org/third_party/tcmalloc/chromium/src/windows/
H A Dport.h264 /* These, when combined with the mmap invariants below, yield the proper action */
275 /* VirtualAlloc only replaces for mmap when certain invariants are kept. */
276 inline void *mmap(void *addr, size_t length, int prot, int flags, function
/external/chromium_org/third_party/tcmalloc/vendor/src/windows/
H A Dport.h261 /* These, when combined with the mmap invariants below, yield the proper action */
272 /* VirtualAlloc only replaces for mmap when certain invariants are kept. */
273 inline void *mmap(void *addr, size_t length, int prot, int flags, function
/external/e2fsprogs/intl/
H A Dloadmsgcat.c463 # define mmap __mmap macro
960 /* Now we are ready to load the file. If mmap() is available we try
962 data = (struct mo_file_header *) mmap (NULL, size, PROT_READ,
967 /* mmap() call was successful. */
973 /* If the data is not yet available (i.e. mmap'ed) we try to load

Completed in 774 milliseconds

12