/prebuilts/go/darwin-x86/src/bytes/ |
equal_test.go | 26 pagesize := syscall.Getpagesize() 27 b := make([]byte, 4*pagesize) 28 i := pagesize 29 for ; uintptr(unsafe.Pointer(&b[i]))%uintptr(pagesize) != 0; i++ { 31 syscall.Mprotect(b[i-pagesize:i], 0) 32 syscall.Mprotect(b[i+pagesize:i+2*pagesize], 0) 33 defer syscall.Mprotect(b[i-pagesize:i], syscall.PROT_READ|syscall.PROT_WRITE) 34 defer syscall.Mprotect(b[i+pagesize:i+2*pagesize], syscall.PROT_READ|syscall.PROT_WRITE [all...] |
/prebuilts/go/linux-x86/src/bytes/ |
equal_test.go | 26 pagesize := syscall.Getpagesize() 27 b := make([]byte, 4*pagesize) 28 i := pagesize 29 for ; uintptr(unsafe.Pointer(&b[i]))%uintptr(pagesize) != 0; i++ { 31 syscall.Mprotect(b[i-pagesize:i], 0) 32 syscall.Mprotect(b[i+pagesize:i+2*pagesize], 0) 33 defer syscall.Mprotect(b[i-pagesize:i], syscall.PROT_READ|syscall.PROT_WRITE) 34 defer syscall.Mprotect(b[i+pagesize:i+2*pagesize], syscall.PROT_READ|syscall.PROT_WRITE [all...] |
/external/strace/tests/ |
mmap.c | 41 const intmax_t pagesize = sysconf(_SC_PAGESIZE); local 42 const unsigned long length = pagesize * 3; 48 offset = 0xcafedeadbeef000 & -pagesize; 49 addr = (void *) (uintmax_t) (0xfacefeed000 & -pagesize); 51 offset = 0xdeadbeef000 & -pagesize; 52 addr = (void *) (unsigned int) (0xfaced000 & -pagesize);
|
pc.c | 40 const unsigned long pagesize = sysconf(_SC_PAGESIZE); local 63 const unsigned long mask = ~(pagesize - 1); 65 unsigned long size = pagesize << 1; 98 (void) sendfile(1, 0, NULL, pagesize);
|
/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);
|
/bionic/tests/ |
sys_mman_test.cpp | 100 size_t pagesize = sysconf(_SC_PAGESIZE); local 104 ASSERT_NE(-1, lseek(tf.fd, pagesize, SEEK_SET)); 106 ASSERT_NE(-1, lseek(tf.fd, 2 * pagesize, SEEK_SET)); 108 ASSERT_NE(-1, lseek(tf.fd, 3 * pagesize - sizeof(END_MSG), SEEK_SET)); 113 void* map = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, tf.fd, pagesize); 119 ASSERT_EQ(0, munmap(map, pagesize)); 121 map = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, tf.fd, 2 * pagesize); 126 ASSERT_STREQ(END_MSG, data+pagesize-sizeof(END_MSG)) 136 size_t pagesize = sysconf(_SC_PAGESIZE); local 179 size_t pagesize = sysconf(_SC_PAGESIZE); local 200 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 405 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); local [all...] |
/toolchain/binutils/binutils-2.25/libiberty/ |
physmem.c | 88 double pagesize = sysconf (_SC_PAGESIZE); local 89 if (0 <= pages && 0 <= pagesize) 90 return pages * pagesize; 100 double pagesize = pss.page_size; local 101 if (0 <= pages && 0 <= pagesize) 102 return pages * pagesize; 112 double pagesize = sysconf (_SC_PAGESIZE); local 114 if (0 <= pages && 0 <= pagesize) 115 return pages * pagesize; 192 double pagesize = sysconf (_SC_PAGESIZE) local 206 double pagesize = pss.page_size; local 218 double pagesize = sysconf (_SC_PAGESIZE); local 233 double pagesize = vmstats.pagesize; local [all...] |
/external/toybox/toys/other/ |
mkswap.c | 25 int fd = xopen(*toys.optargs, O_RDWR), pagesize = sysconf(_SC_PAGE_SIZE); local 27 unsigned int pages = (len/pagesize)-1, *swap = (unsigned int *)toybuf; 39 xlseek(fd, pagesize-10, SEEK_SET); 48 pages*(unsigned long)(pagesize/1024),
|
/system/extras/procmem/ |
procmem.c | 47 int pagesize; /* cached for speed */ local 110 pagesize = pm_kernel_pagesize(ker); 193 address = pm_map_start(mi->map) + j * ker->pagesize; 250 mi->shared_clean * pagesize / 1024, 251 mi->shared_dirty * pagesize / 1024, 252 mi->private_clean * pagesize / 1024, 253 mi->private_dirty * pagesize / 1024, 262 mi->shared_clean * pagesize / 1024, 263 mi->shared_dirty * pagesize / 1024, 264 mi->private_clean * pagesize / 1024 [all...] |
/external/valgrind/none/tests/ |
map_unmap.c | 44 static unsigned int pagesize; variable 47 #define LEN (PAGES*pagesize) 67 off = (random() % LEN) & ~(pagesize-1); 70 /* printf("unmapping off=%d\n", off/pagesize); */ 71 munmap((char *)p + off, pagesize); 72 off += 619*pagesize; 90 pagesize = getpagesize();
|
/external/elfutils/lib/ |
crc32_file.c | 55 const size_t pagesize = sysconf (_SC_PAGE_SIZE); local 56 mapsize = ((mapsize / 2) + pagesize - 1) & -pagesize; 57 while (mapsize >= pagesize
|
/external/valgrind/memcheck/tests/ |
descr_belowsp.c | 82 const int pagesize = getpagesize(); local 84 const int pagesize = 4096; // let's say ? 86 return pagesize; 91 const int pagesize = guess_pagesize(); local 95 (void*) VG_ROUNDUP(lowest_j, pagesize)); 97 (void*) VG_ROUNDUP(lowest_j, pagesize)-1); 99 (void*) VG_ROUNDDN(lowest_j, pagesize));
|
/external/autotest/client/tests/rmaptest/src/ |
rmap-test.c | 27 int pagesize; variable 74 p[page * pagesize]++; 85 msync(p, vmasize * pagesize, MS_ASYNC); 104 p = vma_addresses[rand_vma] + rand_page * pagesize; 188 pagesize = getpagesize(); 194 file_size *= pagesize; 198 ((long long)nvmas * vmasize * pagesize) / 1024); 221 p = mmap(0, vmasize * pagesize, PROT_READ|PROT_WRITE, 228 offset += vmasize * pagesize + pagesize; [all...] |
/system/extras/tests/pagingtest/ |
thrashing_test.c | 22 long pagesize; local 27 pagesize = sysconf(_SC_PAGE_SIZE); 33 filesize = num_pages * pagesize / (ARRAY_SIZE(fds) - 1); 55 for (k = ((filesize - 1) & ~(pagesize - 1)); k >= 0; k -= pagesize) {
|
pageinout_test.c | 21 long pagesize = sysconf(_SC_PAGE_SIZE); local 49 for (j = ((file_size - 1) & ~(pagesize - 1)); j >= 0; j -= 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));
|
/system/extras/libpagemap/ |
pm_map.c | 48 usage.vss += map->proc->ker->pagesize; 69 usage.rss += (count >= 1) ? map->proc->ker->pagesize : (0); 70 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); 71 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); 73 usage.swap += map->proc->ker->pagesize; 119 ws.vss += map->proc->ker->pagesize; 121 ws.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); 122 ws.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); 123 ws.uss += (count == 1) ? (map->proc->ker->pagesize) : (0);
|
/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/selinux/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);
|
/toolchain/binutils/binutils-2.25/bfd/ |
lynx-core.c | 95 int pagesize; local 99 pagesize = getpagesize (); /* Serious cross-target issue here... This 137 if (bfd_seek (abfd, (file_ptr) pagesize, SEEK_SET) != 0) 154 pagesize + tcontext_size); 162 pagesize + tcontext_size + pss.ssize 170 + pss.data_start % pagesize 187 pagesize); 200 pagesize + secnum * sizeof (core_st_t));
|
/hardware/ti/omap4-aah/kernel-headers-ti/linux/ |
bvbuffdesc.h | 40 unsigned long pagesize; member in struct:bvphysdesc
|
/system/core/libbacktrace/ |
GetPss.cpp | 67 int pagesize = getpagesize(); local 74 for (size_t page = start/pagesize; page < end/pagesize; page++) { 80 total_pss += (count >= 1) ? pagesize / count : 0;
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
stack-overflow-sigbus.cc | 49 const long pagesize = sysconf(_SC_PAGESIZE); local 57 p = mmap((void *)(addr - 4 * pagesize), pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_cvs/searchcvs/www/projectName/ |
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) : $page + 5) [all...] |