Home
last modified time | relevance | path

Searched refs:mmapaddr (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress02.c82 caddr_t mmapaddr; in main() local
116 if ((mmapaddr = sbrk(0)) == (caddr_t) - 1) { in main()
124 *(mmapaddr - i) = 'a'; in main()
125 if (write(fd, (char *)mmapaddr - pagesize, pagesize) != pagesize) { in main()
129 if (mmap(mmapaddr, pagesize, PROT_NONE, in main()
130 MAP_FIXED | MAP_PRIVATE | MAP_FILE, fd, 0) != mmapaddr) { in main()
142 if (read(fd, (char *)mmapaddr, pagesize) != -1) { in main()
150 if (write(fd, (char *)mmapaddr, pagesize) != -1) { in main()
162 if (munmap(mmapaddr, pagesize) == -1) { in main()
Dmmapstress05.c62 if (munmap(mmapaddr+pagesize, pagesize) == -1) { \
65 if (munmap(mmapaddr, pagesize) == -1) { \
68 if (munmap(mmapaddr+2*pagesize, pagesize) == -1) { \
107 caddr_t mmapaddr; in main() local
129 if ((mmapaddr = (caddr_t) sbrk(0)) == (caddr_t) - 1) { in main()
179 if (mmap(mmapaddr + pagesize, pagesize, PROT_READ, in main()
186 if (mmap(mmapaddr, pagesize, PROT_READ, in main()
193 if (mmap(mmapaddr + 2 * pagesize, pagesize, PROT_READ, in main()
Dmmapstress08.c64 caddr_t mmapaddr, munmap_begin; in main() local
79 if ((munmap_begin = mmapaddr = (caddr_t) sbrk(0)) == (caddr_t) - 1) { in main()
87 if (mmap(mmapaddr, pagesize, PROT_READ | PROT_WRITE, in main()
93 mmapaddr += NPTEPG * pagesize; in main()
96 if (munmap(munmap_begin, (size_t) (mmapaddr - munmap_begin))) { in main()
Dmmapstress06.c64 caddr_t mmapaddr; in main() local
83 if ((mmapaddr = sbrk(0)) == (char *)-1) { in main()
89 (mmapaddr, (ANON_GRAN_PAGES_MAX * NMFPTEPG + 1) * pagesize, in main()