Lines Matching refs:fault_code
26 static volatile sig_atomic_t fault_code; variable
33 static bool is_fault_expected(int fault_code) in is_fault_expected() argument
35 if (fault_code == SEGV_ACCERR) in is_fault_expected()
39 if (fault_code == SEGV_PKUERR && pkeys_supported) in is_fault_expected()
56 fault_code = sinfo->si_code; in segv_handler()
72 if (is_fault_expected(fault_code)) { in segv_handler()
93 fault_code = -1; in check_exec_fault()
103 FAIL_IF(!is_fault_expected(fault_code)); in check_exec_fault()
170 fault_code = -1; in test()
175 FAIL_IF(remaining_faults != 0 || !is_fault_expected(fault_code)); in test()
182 fault_code = -1; in test()
187 FAIL_IF(remaining_faults != 0 || !is_fault_expected(fault_code)); in test()