HomeSort by relevance Sort by last modified time
    Searched defs:pagesize (Results 1 - 25 of 133) sorted by null

1 2 3 4 5 6

  /bionic/tests/
malloc_test.cpp 301 size_t pagesize = sysconf(_SC_PAGESIZE); local
304 ASSERT_TRUE((reinterpret_cast<uintptr_t>(ptr) & (pagesize-1)) == 0);
305 ASSERT_LE(pagesize, malloc_usable_size(ptr));
314 size_t pagesize = sysconf(_SC_PAGESIZE); local
317 ASSERT_TRUE((reinterpret_cast<uintptr_t>(ptr) & (pagesize-1)) == 0);
sys_mman_test.cpp 99 size_t pagesize = sysconf(_SC_PAGESIZE); local
103 ASSERT_NE(-1, lseek(tf.fd, pagesize, SEEK_SET));
105 ASSERT_NE(-1, lseek(tf.fd, 2 * pagesize, SEEK_SET));
107 ASSERT_NE(-1, lseek(tf.fd, 3 * pagesize - sizeof(END_MSG), SEEK_SET));
112 void* map = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, tf.fd, pagesize);
118 ASSERT_EQ(0, munmap(map, pagesize));
120 map = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, tf.fd, 2 * pagesize);
125 ASSERT_STREQ(END_MSG, data+pagesize-sizeof(END_MSG))
135 size_t pagesize = sysconf(_SC_PAGESIZE); local
    [all...]
buffer_tests.cpp 354 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); local
356 ASSERT_TRUE(posix_memalign(reinterpret_cast<void**>(&memory), pagesize,
357 2*pagesize) == 0);
358 memset(memory, 0x23, 2*pagesize);
361 ASSERT_TRUE(mprotect(&memory[pagesize], pagesize, PROT_NONE) == 0);
363 for (size_t i = 0; i < pagesize; i++) {
364 uint8_t* buf = &memory[pagesize-i];
368 ASSERT_TRUE(mprotect(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0)
375 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); local
401 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); local
    [all...]
  /bionic/libc/bionic/
jemalloc_wrapper.cpp 24 size_t pagesize = getpagesize(); local
25 size_t size = BIONIC_ALIGN(bytes, pagesize);
29 return je_memalign(pagesize, size);
  /external/chromium_org/third_party/tcmalloc/vendor/src/
malloc_hook_mmap_linux.h 75 static int pagesize = 0; variable
76 if (!pagesize) pagesize = getpagesize();
79 if (offset & (pagesize - 1)) {
87 (off_t) (offset / pagesize));
  /external/elfutils/0.153/lib/
crc32_file.c 71 const size_t pagesize = sysconf (_SC_PAGE_SIZE); local
72 mapsize = ((mapsize / 2) + pagesize - 1) & -pagesize;
73 while (mapsize >= pagesize
  /external/chromium_org/third_party/tcmalloc/chromium/src/
malloc_hook_mmap_linux.h 99 static int pagesize = 0; variable
100 if (!pagesize) pagesize = getpagesize();
103 if (offset & (pagesize - 1)) {
111 (off_t) (offset / pagesize));
common.cc 199 static size_t pagesize; local
201 if (pagesize == 0)
202 pagesize = getpagesize();
205 void* result = TCMalloc_SystemAlloc(bytes, NULL, pagesize);
  /external/valgrind/main/memcheck/tests/
leak-segv-jmp.c 191 long pagesize; local
192 #define RNDPAGEDOWN(a) ((long)a & ~(pagesize-1))
223 pagesize = sysconf(_SC_PAGE_SIZE);
224 if (pagesize == -1)
228 (void) VALGRIND_NON_SIMD_CALL2(non_simd_mprotect, RNDPAGEDOWN(&b10[4000]), 2 * pagesize);
230 mprotect_result = mprotect((void*) RNDPAGEDOWN(&b10[4000]), 2 * pagesize, PROT_NONE);
  /external/valgrind/main/none/tests/
map_unmap.c 6 static unsigned int pagesize; variable
9 #define LEN (PAGES*pagesize)
29 off = (random() % LEN) & ~(pagesize-1);
32 /* printf("unmapping off=%d\n", off/pagesize); */
33 munmap((char *)p + off, pagesize);
34 off += 619*pagesize;
52 pagesize = getpagesize();
  /external/chromium_org/third_party/tcmalloc/chromium/src/tests/
memalign_unittest.cc 194 const int pagesize = getpagesize(); local
199 CheckAlignment(p, pagesize);
210 CheckAlignment(p, pagesize);
211 int alloc_needed = ((s + pagesize - 1) / pagesize) * pagesize;
  /external/chromium_org/third_party/tcmalloc/vendor/src/tests/
memalign_unittest.cc 194 const int pagesize = getpagesize(); local
199 CheckAlignment(p, pagesize);
210 CheckAlignment(p, pagesize);
211 int alloc_needed = ((s + pagesize - 1) / pagesize) * pagesize;
  /external/openfst/src/lib/
mapped-file.cc 69 int pagesize = getpagesize(); local
70 off_t offset = pos % pagesize;
  /hardware/ti/omap4-aah/kernel-headers-ti/linux/
bvbuffdesc.h 40 unsigned long pagesize; member in struct:bvphysdesc
  /packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
mmapped_buffer.cpp 38 const int pagesize = sysconf(_SC_PAGESIZE); local
39 const int offset = bufferOffset % pagesize;
  /system/core/libbacktrace/
GetPss.cpp 59 int pagesize = getpagesize(); local
66 for (size_t page = start/pagesize; page < end/pagesize; page++) {
72 total_pss += (count >= 1) ? pagesize / count : 0;
  /system/core/toolbox/
mkswap.c 30 int pagesize; local
45 pagesize = getpagesize();
48 if (swap_size < MIN_PAGES * pagesize) {
50 (MIN_PAGES * pagesize) >> 10);
62 sw_hdr.last_page = (swap_size / pagesize) - 1;
72 if (lseek(fd, pagesize - MAGIC_SWAP_HEADER_LEN, SEEK_SET) < 0) {
  /external/chromium_org/base/process/
process_metrics_freebsd.cc 100 int mib[2], pagesize; local
117 pagesize = getpagesize();
119 return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize);
process_metrics_openbsd.cc 144 int pagesize; local
156 pagesize = getpagesize();
158 return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize);
  /external/chromium_org/tools/deep_memory_profiler/lib/
dump.py 45 def pagesize(self): member in class:Dump
  /external/harfbuzz_ng/test/api/
test-blob.c 116 uintptr_t pagesize = -1; local
119 pagesize = (uintptr_t) sysconf (_SC_PAGE_SIZE);
121 pagesize = (uintptr_t) sysconf (_SC_PAGESIZE);
123 pagesize = (uintptr_t) getpagesize ();
126 g_assert (pagesize != (uintptr_t) -1);
128 return pagesize;
172 uintptr_t pagesize = get_pagesize (); local
174 data = mmap (NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
177 mprotect ((char *) data, pagesize, PROT_READ);
  /external/libselinux/src/
sestatus.c 259 long pagesize; local
266 pagesize = sysconf(_SC_PAGESIZE);
267 if (pagesize < 0)
275 selinux_status = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd, 0);
325 long pagesize; local
340 pagesize = sysconf(_SC_PAGESIZE);
342 if (pagesize > 0)
343 munmap(selinux_status, pagesize);
  /external/qemu/distrib/libselinux/src/
sestatus.c 259 long pagesize; local
266 pagesize = sysconf(_SC_PAGESIZE);
267 if (pagesize < 0)
275 selinux_status = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd, 0);
325 long pagesize; local
340 pagesize = sysconf(_SC_PAGESIZE);
342 if (pagesize > 0)
343 munmap(selinux_status, pagesize);
  /frameworks/native/libs/binder/
MemoryHeapBase.cpp 48 const size_t pagesize = getpagesize(); local
49 size = ((size + pagesize-1) & ~(pagesize-1));
72 const size_t pagesize = getpagesize(); local
73 size = ((size + pagesize-1) & ~(pagesize-1));
84 const size_t pagesize = getpagesize(); local
85 size = ((size + pagesize-1) & ~(pagesize-1));
  /external/chromium_org/third_party/harfbuzz-ng/src/
hb-blob.cc 388 uintptr_t pagesize = -1, mask, length; local
392 pagesize = (uintptr_t) sysconf (_SC_PAGE_SIZE);
394 pagesize = (uintptr_t) sysconf (_SC_PAGESIZE);
396 pagesize = (uintptr_t) getpagesize ();
399 if ((uintptr_t) -1L == pagesize) {
400 DEBUG_MSG_FUNC (BLOB, blob, "failed to get pagesize: %s", strerror (errno));
403 DEBUG_MSG_FUNC (BLOB, blob, "pagesize is %lu", (unsigned long) pagesize);
405 mask = ~(pagesize-1);
407 length = (const char *) (((uintptr_t) blob->data + blob->length + pagesize-1) & mask) - addr
    [all...]

Completed in 6509 milliseconds

1 2 3 4 5 6