Searched refs:randpage (Results 1 – 3 of 3) sorted by relevance
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress09.c | 377 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()
|
D | mmapstress01.c | 474 unsigned randpage; local 548 randpage = lrand48() % mappages; 549 paddr = maddr + (randpage * pagesize); /* page address */ 551 if (randpage < mappages - 1 || !(mapsize % pagesize)) 563 "<x%x>\n", randpage, i, 578 randpage = lrand48() % mappages; 579 paddr = maddr + (randpage * pagesize); /* page address */ 580 if (msync(paddr, (mappages - randpage) * pagesize,
|
D | mmapstress10.c | 536 unsigned randpage; local 627 randpage = lrand48() % mappages; 628 paddr = maddr_mapper + (randpage * pagesize); /* page address */ 630 if (randpage < mappages - 1 || !(mapsize_mapper % pagesize)) 649 "<x%x>\n", randpage, i, 664 randpage = lrand48() % mappages; 665 paddr = maddr_mapper + (randpage * pagesize); /* page address */ 666 if (msync(paddr, (mappages - randpage) * pagesize,
|