Lines Matching refs:shstk_ptr
246 void *shstk_ptr; variable
251 if (shstk_ptr) in reset_test_shstk()
252 free_shstk(shstk_ptr); in reset_test_shstk()
253 shstk_ptr = create_shstk(addr); in reset_test_shstk()
264 reset_test_shstk(shstk_ptr); in test_access_fix_handler()
268 free_shstk(shstk_ptr); in test_access_fix_handler()
269 create_normal_mem(shstk_ptr); in test_access_fix_handler()
334 if (gup_read(shstk_ptr)) in test_gup()
336 if (test_shstk_access(shstk_ptr)) in test_gup()
341 if (gup_write(shstk_ptr)) in test_gup()
343 if (test_shstk_access(shstk_ptr)) in test_gup()
348 if (gup_read(shstk_ptr)) in test_gup()
350 if (!test_write_access(shstk_ptr)) in test_gup()
355 if (gup_write(shstk_ptr)) in test_gup()
357 if (!test_write_access(shstk_ptr)) in test_gup()
371 if (gup_write(shstk_ptr)) { in test_gup()
383 if (*(unsigned long *)shstk_ptr == MAGIC_VAL) { in test_gup()
390 free_shstk(shstk_ptr); in test_gup()
412 if (mprotect(shstk_ptr, SS_SIZE, PROT_READ) < 0) { in test_mprotect()
418 if (!test_shstk_access(shstk_ptr)) { in test_mprotect()
427 if (mprotect(shstk_ptr, SS_SIZE, PROT_READ) < 0) { in test_mprotect()
433 if (mprotect(shstk_ptr, SS_SIZE, PROT_WRITE | PROT_READ) < 0) { in test_mprotect()
439 if (test_shstk_access(shstk_ptr)) { in test_mprotect()
444 free_shstk(shstk_ptr); in test_mprotect()
509 uffdio_register.range.start = (__u64)shstk_ptr; in test_userfaultfd()
518 reset_shstk(shstk_ptr); in test_userfaultfd()
519 test_shstk_access(shstk_ptr); in test_userfaultfd()
524 if (test_shstk_access(shstk_ptr)) in test_userfaultfd()
527 free_shstk(shstk_ptr); in test_userfaultfd()
535 free_shstk(shstk_ptr); in test_userfaultfd()