Home
last modified time | relevance | path

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

/tools/testing/selftests/powerpc/tm/
A Dtm-vmxcopy.c39 unsigned long pgsize = getpagesize(); in test_vmxcopy() local
42 int size = pgsize*16; in test_vmxcopy()
44 char buf[pgsize]; in test_vmxcopy()
55 memset(buf, 0, pgsize); in test_vmxcopy()
56 for (i = 0; i < size; i += pgsize) in test_vmxcopy()
57 assert(write(fd, buf, pgsize) == pgsize); in test_vmxcopy()
/tools/testing/selftests/powerpc/mm/
A Dpkey_exec_prot.c27 static unsigned long pgsize, numinsns; variable
62 if (mprotect(insns, pgsize, PROT_READ | PROT_WRITE)) { in segv_handler()
84 if (mprotect(insns, pgsize, PROT_EXEC)) { in segv_handler()
129 pgsize = getpagesize(); in test()
130 numinsns = pgsize / sizeof(unsigned int); in test()
179 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
196 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
216 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
233 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
270 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
[all …]
A Dexec_prot.c29 static unsigned long pgsize, numinsns; variable
73 if (mprotect(insns, pgsize, PROT_READ | PROT_WRITE | PROT_EXEC)) { in segv_handler()
98 FAIL_IF(mprotect(insns, pgsize, rights) != 0); in check_exec_fault()
136 pgsize = getpagesize(); in test()
137 numinsns = pgsize / sizeof(unsigned int); in test()
138 insns = (unsigned int *)mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in test()
173 FAIL_IF(mprotect(insns, pgsize, PROT_EXEC) != 0); in test()
185 FAIL_IF(mprotect(insns, pgsize, PROT_EXEC) != 0); in test()
223 FAIL_IF(munmap((void *)insns, pgsize)); in test()
A Dpkey_siginfo.c38 size_t pgsize; in segv_handler() local
67 pgsize = getpagesize(); in segv_handler()
68 pgstart = (void *) ((unsigned long) fault_addr & ~(pgsize - 1)); in segv_handler()
83 mprotect(pgstart, pgsize, PROT_EXEC)) in segv_handler()

Completed in 6 milliseconds