Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/mem/mtest05/
Dmmstress.c130 static int pages_num = NUMPAGES; /* number of pages to use for tests */ variable
201 * (pages_num / NUMTHREAD) in thread_fault()
219 for (; pgnum_ndx < (pages_num / NUMTHREAD); pgnum_ndx++) { in thread_fault()
246 if (munmap(addr, sysconf(_SC_PAGESIZE) * pages_num) < 0) { in remove_files()
308 empty_buf = malloc(pagesize * pages_num); in map_and_thread()
309 if (write(fd, empty_buf, pagesize * pages_num) != in map_and_thread()
310 (pagesize * pages_num)) { in map_and_thread()
325 if ((map_addr = (void *) mmap(0, pagesize * pages_num, in map_and_thread()
671 pages_num = atoi(optarg); in main()