Lines Matching defs:mpa
128 static void pkey_test(struct tcase *tc, struct mmap_param *mpa)
133 int fd = mpa->fd;
135 if (!tst_hugepages && (mpa->flags & MAP_HUGETLB)) {
136 tst_res(TINFO, "Skip test on (%s) buffer", flag_to_str(mpa->flags));
143 buffer = SAFE_MMAP(NULL, size, mpa->prot, mpa->flags, fd, 0);
149 tst_res(TINFO, "Set %s on (%s) buffer", tc->name, flag_to_str(mpa->flags));
150 if (ltp_pkey_mprotect(buffer, size, mpa->prot, pkey) == -1)
179 if (ltp_pkey_mprotect(buffer, size, mpa->prot, 0x0) == -1)
182 switch (mpa->prot) {
209 struct mmap_param *mpa;
214 mpa = &mmap_params[j];
216 pkey_test(tc, mpa);