Home
last modified time | relevance | path

Searched refs:pagesize (Results 1 – 25 of 57) sorted by relevance

123

/external/strace/tests/
Dmmap.c41 const intmax_t pagesize = sysconf(_SC_PAGESIZE); in main() local
42 const unsigned long length = pagesize * 3; in main()
48 offset = 0xcafedeadbeef000 & -pagesize; in main()
49 addr = (void *) (uintmax_t) (0xfacefeed000 & -pagesize); in main()
51 offset = 0xdeadbeef000 & -pagesize; in main()
52 addr = (void *) (unsigned int) (0xfaced000 & -pagesize); in main()
Dpc.c40 const unsigned long pagesize = sysconf(_SC_PAGESIZE); in main() local
63 const unsigned long mask = ~(pagesize - 1); in main()
65 unsigned long size = pagesize << 1; in main()
98 (void) sendfile(1, 0, NULL, pagesize); in main()
/external/autotest/client/tests/rmaptest/src/
Drmap-test.c27 int pagesize; variable
74 p[page * pagesize]++; in touch_pages()
85 msync(p, vmasize * pagesize, MS_ASYNC); in msync_file()
104 p = vma_addresses[rand_vma] + rand_page * pagesize; in touch_random_pages()
188 pagesize = getpagesize(); in main()
194 file_size *= pagesize; in main()
198 ((long long)nvmas * vmasize * pagesize) / 1024); in main()
221 p = mmap(0, vmasize * pagesize, PROT_READ|PROT_WRITE, in main()
228 offset += vmasize * pagesize + pagesize; in main()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_cvs/searchcvs/www/projectName/
Dsearchcvs.php7 $pagesize = 25; //results per page variable
11 $offset = ($page - 1) * $pagesize;
71 …FT JOIN `bugs` $where GROUP BY `fid`, `revision`, `bugid` $having $order LIMIT $offset, $pagesize";
78 …howing results " . ($offset + 1) . "-" . ($offset + $pagesize > $rows ? $rows : $offset + $pagesiz…
84 dopager($rows, $page, $pagesize);
103 dopager($rows, $page, $pagesize);
227 function dopager($rows, $page, $pagesize) argument
230 $endpage = ($page + 5 > $rows/$pagesize ? ceil($rows/$pagesize) : $page + 5);
240 print ($page < ceil($rows/$pagesize) ? pagelink($page + 1, false, "Next") : "");
/external/valgrind/memcheck/tests/
Ddescr_belowsp.c82 const int pagesize = getpagesize(); in guess_pagesize() local
84 const int pagesize = 4096; // let's say ? in guess_pagesize()
86 return pagesize; in guess_pagesize()
91 const int pagesize = guess_pagesize(); in describe_many() local
95 (void*) VG_ROUNDUP(lowest_j, pagesize)); in describe_many()
97 (void*) VG_ROUNDUP(lowest_j, pagesize)-1); in describe_many()
99 (void*) VG_ROUNDDN(lowest_j, pagesize)); in describe_many()
Dleak-segv-jmp.c287 long pagesize; in f() local
288 #define RNDPAGEDOWN(a) ((long)a & ~(pagesize-1)) in f()
319 pagesize = sysconf(_SC_PAGE_SIZE); in f()
320 if (pagesize == -1) in f()
323 my_mprotect_none((void*) RNDPAGEDOWN(&b10[4000]), 2 * pagesize); in f()
/external/libselinux/src/
Dsestatus.c259 long pagesize; in selinux_status_open() local
266 pagesize = sysconf(_SC_PAGESIZE); in selinux_status_open()
267 if (pagesize < 0) in selinux_status_open()
275 selinux_status = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd, 0); in selinux_status_open()
325 long pagesize; in selinux_status_close() local
340 pagesize = sysconf(_SC_PAGESIZE); in selinux_status_close()
342 if (pagesize > 0) in selinux_status_close()
343 munmap(selinux_status, pagesize); in selinux_status_close()
/external/selinux/libselinux/src/
Dsestatus.c259 long pagesize; in selinux_status_open() local
266 pagesize = sysconf(_SC_PAGESIZE); in selinux_status_open()
267 if (pagesize < 0) in selinux_status_open()
275 selinux_status = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd, 0); in selinux_status_open()
325 long pagesize; in selinux_status_close() local
340 pagesize = sysconf(_SC_PAGESIZE); in selinux_status_close()
342 if (pagesize > 0) in selinux_status_close()
343 munmap(selinux_status, pagesize); in selinux_status_close()
/external/valgrind/none/tests/
Dmap_unmap.c44 static unsigned int pagesize; variable
47 #define LEN (PAGES*pagesize)
67 off = (random() % LEN) & ~(pagesize-1); in nibblemap()
71 munmap((char *)p + off, pagesize); in nibblemap()
72 off += 619*pagesize; in nibblemap()
90 pagesize = getpagesize(); in main()
/external/harfbuzz_ng/src/
Dhb-blob.cc390 uintptr_t pagesize = -1, mask, length; in _try_make_writable_inplace_unix() local
394 pagesize = (uintptr_t) sysconf (_SC_PAGE_SIZE); in _try_make_writable_inplace_unix()
396 pagesize = (uintptr_t) sysconf (_SC_PAGESIZE); in _try_make_writable_inplace_unix()
398 pagesize = (uintptr_t) getpagesize (); in _try_make_writable_inplace_unix()
401 if ((uintptr_t) -1L == pagesize) { in _try_make_writable_inplace_unix()
405 DEBUG_MSG_FUNC (BLOB, blob, "pagesize is %lu", (unsigned long) pagesize); in _try_make_writable_inplace_unix()
407 mask = ~(pagesize-1); in _try_make_writable_inplace_unix()
409 length = (const char *) (((uintptr_t) blob->data + blob->length + pagesize-1) & mask) - addr; in _try_make_writable_inplace_unix()
/external/elfutils/libdwfl/
Delf-from-memory.c58 GElf_Xword pagesize, in elf_from_remote_memory() argument
230 if (((vaddr - offset) & (pagesize - 1)) != 0) in elf_from_remote_memory()
233 GElf_Off segment_end = ((offset + filesz + pagesize - 1) in elf_from_remote_memory()
234 & -pagesize); in elf_from_remote_memory()
239 if (!found_base && (offset & -pagesize) == 0) in elf_from_remote_memory()
241 loadbase = ehdr_vma - (vaddr & -pagesize); in elf_from_remote_memory()
309 GElf_Off start = offset & -pagesize; in elf_from_remote_memory()
310 GElf_Off end = (offset + filesz + pagesize - 1) & -pagesize; in elf_from_remote_memory()
314 (loadbase + vaddr) & -pagesize, in elf_from_remote_memory()
/external/toybox/toys/other/
Dmkswap.c25 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),
/external/harfbuzz_ng/test/api/
Dtest-blob.c119 uintptr_t pagesize = -1; in get_pagesize() local
122 pagesize = (uintptr_t) sysconf (_SC_PAGE_SIZE); in get_pagesize()
124 pagesize = (uintptr_t) sysconf (_SC_PAGESIZE); in get_pagesize()
126 pagesize = (uintptr_t) getpagesize (); in get_pagesize()
129 g_assert (pagesize != (uintptr_t) -1); in get_pagesize()
131 return pagesize; in get_pagesize()
175 uintptr_t pagesize = get_pagesize (); in fixture_init() local
177 data = mmap (NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in fixture_init()
180 mprotect ((char *) data, pagesize, PROT_READ); in fixture_init()
/external/elfutils/lib/
Dcrc32_file.c55 const size_t pagesize = sysconf (_SC_PAGE_SIZE); in crc32_file() local
56 mapsize = ((mapsize / 2) + pagesize - 1) & -pagesize; in crc32_file()
57 while (mapsize >= pagesize in crc32_file()
/external/bison/m4/
Dmemchr.m456 int pagesize = getpagesize ();
58 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
61 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
62 fence = two_pages + pagesize;
/external/compiler-rt/test/asan/TestCases/Linux/
Dstack-overflow-sigbus.cc49 const long pagesize = sysconf(_SC_PAGESIZE); in main() local
57 …p = mmap((void *)(addr - 4 * pagesize), pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYM… in main()
/external/fio/os/
Dos-android.h182 long pagesize, pages; in os_phys_mem() local
184 pagesize = sysconf(_SC_PAGESIZE); in os_phys_mem()
186 if (pages == -1 || pagesize == -1) in os_phys_mem()
189 return (unsigned long long) pages * (unsigned long long) pagesize; in os_phys_mem()
Dos-linux.h143 long pagesize, pages; in os_phys_mem() local
145 pagesize = sysconf(_SC_PAGESIZE); in os_phys_mem()
147 if (pages == -1 || pagesize == -1) in os_phys_mem()
150 return (unsigned long long) pages * (unsigned long long) pagesize; in os_phys_mem()
Dos-windows.h155 long pagesize, pages; in os_phys_mem() local
157 pagesize = sysconf(_SC_PAGESIZE); in os_phys_mem()
159 if (pages == -1 || pagesize == -1) in os_phys_mem()
162 return (unsigned long long) pages * (unsigned long long) pagesize; in os_phys_mem()
/external/autotest/client/tests/fsx/
D0001-Minor-fixes-to-PAGE_SIZE-handling.patch29 +#define PAGE_SIZE pagesize
37 +int pagesize = 0;
63 + pagesize = getpagesize();
/external/e2fsprogs/misc/
De4defrag.c417 long pagesize; in page_in_core() local
424 pagesize = sysconf(_SC_PAGESIZE); in page_in_core()
425 if (pagesize < 0) in page_in_core()
432 offset = (offset / pagesize) * pagesize; in page_in_core()
440 *page_num = (length + pagesize - 1) / pagesize; in page_in_core()
467 long pagesize = sysconf(_SC_PAGESIZE); in defrag_fadvise() local
475 if (pagesize < 1) in defrag_fadvise()
479 offset = (offset / pagesize) * pagesize; in defrag_fadvise()
483 (loff_t)pagesize * page_num, sync_flag) < 0) in defrag_fadvise()
491 offset += pagesize; in defrag_fadvise()
[all …]
/external/strace/
Dmem.c40 static unsigned long pagesize; in get_pagesize() local
42 if (!pagesize) in get_pagesize()
43 pagesize = sysconf(_SC_PAGESIZE); in get_pagesize()
44 return pagesize; in get_pagesize()
/external/valgrind/
DREADME.mips22 [--with-pagesize=<4|16|64>]
27 * --with-pagesize option is used to set default PAGE SIZE. If option is not
/external/libchrome/base/files/
Dfile_util_posix.cc173 size_t pagesize = static_cast<size_t>(sysconf_result); in DetermineDevShmExecutable() local
174 CHECK_GE(sizeof(pagesize), sizeof(sysconf_result)); in DetermineDevShmExecutable()
175 void* mapping = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd.get(), 0); in DetermineDevShmExecutable()
177 if (mprotect(mapping, pagesize, PROT_READ | PROT_EXEC) == 0) in DetermineDevShmExecutable()
179 munmap(mapping, pagesize); in DetermineDevShmExecutable()
/external/kernel-headers/original/uapi/asm-arm/asm/
Dsetup.h34 __u32 pagesize; member

123