Lines Matching full:pages
12 * and lock all pages including non-present.
16 * and just lock present pages.
29 #define PAGES 8 macro
30 #define HPAGES (PAGES / 2)
33 static unsigned char vec[PAGES+1];
46 /* lock all pages, expect all to be locked and present */
47 {0, PAGES, 0, PAGES, PAGES, 0},
49 /* mlock2() locks 3 pages if the specified
50 * range is little more than 2 pages.
54 /* mlock2() locks 2 pages if the specified
55 * range is little less than 2 pages.
60 * pages populated by data.
64 /* fault-in half of pages, lock all with MLOCK_ONFAULT */
65 {HPAGES, PAGES, 0, PAGES, HPAGES, MLOCK_ONFAULT},
67 /* fault-in 1 page, lock half of pages */
70 /* fault-in half, lock little less than 2 pages */
95 addr = SAFE_MMAP(NULL, PAGES * pgsz, PROT_WRITE, in verify_mlock2()
117 tst_res(TFAIL, "VmLck showed wrong %ld pages, expected %ld", in verify_mlock2()
122 act_pgs = check_locked_pages(addr, PAGES * pgsz, PAGES); in verify_mlock2()
124 tst_res(TFAIL, "mlock2(%d) locked %ld pages, expected %ld", in verify_mlock2()
127 tst_res(TPASS, "mlock2(%d) succeeded in locking %ld pages", in verify_mlock2()
134 SAFE_MUNMAP(addr, PAGES * pgsz); in verify_mlock2()