Home | History | Annotate | Download | only in tests

Lines Matching defs:pgsz

13 static int pgsz;
35 char *m = mm(0, pgsz * 5, PROT_READ);
37 VALGRIND_CHECK_MEM_IS_DEFINED(m, pgsz*5); /* all defined */
43 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE);
44 VALGRIND_CHECK_MEM_IS_DEFINED(m, pgsz*5); /* all OK */
46 munmap(&m[pgsz*2], pgsz);
48 VALGRIND_CHECK_MEM_IS_DEFINED(&m[pgsz*2], pgsz); /* undefined */
51 m[pgsz*2] = 'x'; /* unmapped fault */
57 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE);
59 VALGRIND_MAKE_MEM_UNDEFINED(&m[pgsz], pgsz);
60 mm(&m[pgsz], pgsz, PROT_READ);
61 VALGRIND_CHECK_MEM_IS_DEFINED(&m[pgsz], pgsz); /* OK */
67 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE);
69 mprotect(m, pgsz, PROT_WRITE);
70 VALGRIND_CHECK_MEM_IS_DEFINED(m, pgsz); /* OK */
73 mprotect(m, pgsz*5, PROT_NONE);
80 char *m = mm(0, pgsz * 5, PROT_READ|PROT_WRITE);
82 VALGRIND_MAKE_MEM_UNDEFINED(m, pgsz*5);
87 mprotect(m, pgsz*5, PROT_NONE);
88 mprotect(m, pgsz*5, PROT_READ);
111 pgsz = getpagesize();