Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/mem/mtest05/
H A 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 /* Write pagesize * pages_num bytes to the file */ in map_and_thread()
309 empty_buf = malloc(pagesize * pages_num); in map_and_thread()
325 pagesize * pages_num - written); in map_and_thread()
335 } while (written < pagesize * pages_num); in map_and_thread()
343 if ((map_addr = (void *) mmap(0, pagesize * pages_num, in map_and_thread()
689 pages_num in main()
[all...]

Completed in 2 milliseconds