Home
last modified time | relevance | path

Searched refs:randpage (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress09.c377 unsigned randpage; in child_mapper() local
396 randpage = lrand48() % mappages; in child_mapper()
398 paddr = (uchar_t *) (mapaddr + (randpage * pagesize)); in child_mapper()
409 randpage, i, in child_mapper()
422 randpage = (unsigned)lrand48() % mappages; in child_mapper()
423 paddr = (uchar_t *) mapaddr + (randpage * pagesize); in child_mapper()
424 if (msync((caddr_t) paddr, (mappages - randpage) * pagesize, in child_mapper()
Dmmapstress01.c475 unsigned randpage; local
549 randpage = lrand48() % mappages;
550 paddr = maddr + (randpage * pagesize); /* page address */
552 if (randpage < mappages - 1 || !(mapsize % pagesize))
564 "<x%x>\n", randpage, i,
579 randpage = lrand48() % mappages;
580 paddr = maddr + (randpage * pagesize); /* page address */
581 if (msync(paddr, (mappages - randpage) * pagesize,
Dmmapstress10.c538 unsigned randpage; local
629 randpage = lrand48() % mappages;
630 paddr = maddr_mapper + (randpage * pagesize); /* page address */
632 if (randpage < mappages - 1 || !(mapsize_mapper % pagesize))
651 "<x%x>\n", randpage, i,
666 randpage = lrand48() % mappages;
667 paddr = maddr_mapper + (randpage * pagesize); /* page address */
668 if (msync(paddr, (mappages - randpage) * pagesize,