Home
last modified time | relevance | path

Searched refs:page_len (Results 1 – 2 of 2) sorted by relevance

/external/strace/tests/
Dumovestr.c8 const size_t page_len = sysconf(_SC_PAGESIZE); in main() local
11 if (tail_len >= page_len) in main()
14 void *p = mmap(NULL, page_len * 2, PROT_READ | PROT_WRITE, in main()
16 if (p == MAP_FAILED || mprotect(p + page_len, page_len, PROT_NONE)) in main()
19 memset(p, 0, page_len); in main()
20 char *addr = p + page_len - tail_len; in main()
Dumovestr2.c9 const size_t page_len = sysconf(_SC_PAGESIZE); in main() local
10 const size_t work_len = page_len * 2; in main()
13 void *p = mmap(NULL, page_len * 3, PROT_READ | PROT_WRITE, in main()
15 if (p == MAP_FAILED || mprotect(p + work_len, page_len, PROT_NONE)) in main()