/external/valgrind/main/none/tests/ |
H A D | 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/elfutils/0.153/lib/ |
H A D | 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/windows/ |
H A D | port.cc | 55 static int pagesize = 0; local 56 if (pagesize == 0) { 59 pagesize = std::max(system_info.dwPageSize, 62 return pagesize; 227 // Align on the pagesize boundary 228 const int pagesize = getpagesize(); local 229 if (alignment < pagesize) alignment = pagesize; 241 // We currently do not support alignments larger than the pagesize or 242 // alignments that are not multiples of the pagesize afte 260 static size_t pagesize = 0; local [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/windows/ |
H A D | port.cc | 54 static int pagesize = 0; local 55 if (pagesize == 0) { 58 pagesize = std::max(system_info.dwPageSize, 61 return pagesize; 225 // Align on the pagesize boundary 226 const int pagesize = getpagesize(); local 227 if (alignment < pagesize) alignment = pagesize; 235 // Ask for extra memory if alignment > pagesize 237 if (alignment > pagesize) { [all...] |
/external/chromium_org/third_party/sqlite/src/tool/ |
H A D | showdb.c | 14 static int pagesize = 1024; /* Size of a database page */ variable 120 iStart = (iPg-1)*pagesize; 122 iPg, iStart, iStart+pagesize-1); 123 aData = print_byte_range(iStart, pagesize, 0); 260 maxLocal = pagesize-35; 261 minLocal = (pagesize-12)*32/255-23; 263 maxLocal = (pagesize-12)*64/255-23; 264 minLocal = (pagesize-12)*32/255-23; 267 surplus = minLocal + (nPayload-minLocal)%(pagesize-4); 385 zMap = malloc(pagesize); 420 decode_trunk_page( int pgno, int pagesize, int detail, int recursive ) argument [all...] |
H A D | showwal.c | 14 static int pagesize = 1024; /* Size of a database page */ variable 140 iStart = 32 + (iFrame-1)*(pagesize+24); 142 iFrame, iStart, iStart+pagesize+24); 143 aData = getContent(iStart, pagesize+24); 150 print_byte_range(iStart+24, pagesize, aData+24, 0); 168 iStart = 32 + (iFrame-1)*(pagesize+24); 289 pagesize = zPgSz[0]*256 + zPgSz[1]; 290 if( pagesize==0 ) pagesize = 1024; 291 printf("Pagesize: %d\n", pagesize); [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
H A D | system-alloc.cc | 119 static size_t pagesize = 0; variable 284 if (pagesize == 0) pagesize = getpagesize(); 285 if (alignment < pagesize) alignment = pagesize; 298 // Ask for extra memory if alignment > pagesize 300 if (alignment > pagesize) { 301 extra = alignment - pagesize; 368 if (pagesize == 0) pagesize [all...] |
H A D | 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));
|
H A D | debugallocation.cc | 501 int pagesize = getpagesize(); local 502 int num_pages = (sz + pagesize - 1) / pagesize + 1; 503 char* p = (char*) mmap(NULL, num_pages * pagesize, PROT_READ|PROT_WRITE, 514 if (mprotect(p + (num_pages - 1) * pagesize, pagesize, PROT_NONE)) { 517 b = (MallocBlock*) (p + (num_pages - 1) * pagesize - sz); 544 int pagesize = getpagesize(); local 545 int num_pages = (size + pagesize - 1) / pagesize 1393 int pagesize = getpagesize(); local [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
H A D | system-alloc.cc | 253 static size_t pagesize = 0; variable 425 if (pagesize == 0) pagesize = getpagesize(); 426 if (alignment < pagesize) alignment = pagesize; 439 // Ask for extra memory if alignment > pagesize 441 if (alignment > pagesize) { 442 extra = alignment - pagesize; 505 if (pagesize == 0) pagesize [all...] |
H A D | common.cc | 199 static size_t pagesize; local 201 if (pagesize == 0) 202 pagesize = getpagesize(); 205 void* result = TCMalloc_SystemAlloc(bytes, NULL, pagesize);
|
H A D | 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));
|
H A D | debugallocation.cc | 499 int pagesize = getpagesize(); local 500 int num_pages = (sz + pagesize - 1) / pagesize + 1; 501 char* p = (char*) mmap(NULL, num_pages * pagesize, PROT_READ|PROT_WRITE, 512 if (mprotect(p + (num_pages - 1) * pagesize, pagesize, PROT_NONE)) { 515 b = (MallocBlock*) (p + (num_pages - 1) * pagesize - sz); 542 int pagesize = getpagesize(); local 543 int num_pages = (size + pagesize - 1) / pagesize 1405 int pagesize = getpagesize(); local [all...] |
/external/libselinux/src/ |
H A D | 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/ |
H A D | 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/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_cvs/searchcvs/www/projectName/ |
H A D | searchcvs.php | 7 $pagesize = 25; //results per page variable 11 $offset = ($page - 1) * $pagesize; 71 $sql = "SELECT SQL_CALC_FOUND_ROWS `cvsname`, `revision`, `date`, `author`, `message`, `keyword_subs`, `bugid`, `revision` AS `orev`, `fid` AS `ofid`, $branch AS `branch`$ec FROM `cvsfiles` NATURAL JOIN `commits` NATURAL LEFT JOIN `bugs` $where GROUP BY `fid`, `revision`, `bugid` $having $order LIMIT $offset, $pagesize"; 78 $title = "<span>$rows results total</span>Showing results " . ($offset + 1) . "-" . ($offset + $pagesize > $rows ? $rows : $offset + $pagesize) . " for " . ($_GET["q"] == "" ? "last $days days of commits" : "$et" . sanitize($_GET["q"], "text")); 84 dopager($rows, $page, $pagesize); 103 dopager($rows, $page, $pagesize); 227 function dopager($rows, $page, $pagesize) 230 $endpage = ($page + 5 > $rows/$pagesize ? ceil($rows/$pagesize) [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
H A D | 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/ |
H A D | 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/valgrind/main/memcheck/tests/ |
H A D | 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/chromium_org/base/process/ |
H A D | process_metrics_freebsd.cc | 100 int mib[2], pagesize; local 117 pagesize = getpagesize(); 119 return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize);
|
H A D | process_metrics_openbsd.cc | 144 int pagesize; local 156 pagesize = getpagesize(); 158 return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize);
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
H A D | 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 [all...] |
/external/harfbuzz_ng/src/ |
H A D | 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 [all...] |
/external/harfbuzz_ng/test/api/ |
H A D | 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/openfst/src/lib/ |
H A D | mapped-file.cc | 69 int pagesize = getpagesize(); local 70 off_t offset = pos % pagesize;
|