/linux/tools/testing/selftests/net/ |
H A D | gro.sh | 14 local exit_code=0 33 exit_code=$? 35 ${exit_code} -ne 0 ]]; then 37 exit_code=0 39 if [[ "${exit_code}" -eq 0 ]]; then 44 echo ${exit_code} 52 exit_code=$(run_test $proto $test) 53 if [[ "${exit_code}" -ne 0 ]]; then 103 exit_code=$(run_test "${proto}" "${test}") 104 exit $exit_code
|
H A D | setup_loopback.sh | 52 exit_code=$? 53 if [[ "${exit_code}" -ne 0 ]]; then 55 exit $exit_code
|
H A D | toeplitz.sh | 194 exit_code=$? 196 if [[ "${exit_code}" -eq 0 ]]; then 199 exit "${exit_code}"
|
/linux/tools/arch/s390/include/uapi/asm/ |
H A D | sie.h | 90 #define exit_code(opcode, mnemonic) \ macro 190 exit_code(0x0a, "SVC"), \ 191 exit_code(0x80, "SSM"), \ 192 exit_code(0x82, "LPSW"), \ 193 exit_code(0x83, "DIAG"), \ 194 exit_code(0xae, "SIGP"), \ 195 exit_code(0xac, "STNSM"), \ 196 exit_code(0xad, "STOSM"), \ 197 exit_code(0xb1, "LRA"), \ 198 exit_code(0xb6, "STCTL"), \ [all …]
|
/linux/arch/s390/include/uapi/asm/ |
H A D | sie.h | 90 #define exit_code(opcode, mnemonic) \ macro 190 exit_code(0x0a, "SVC"), \ 191 exit_code(0x80, "SSM"), \ 192 exit_code(0x82, "LPSW"), \ 193 exit_code(0x83, "DIAG"), \ 194 exit_code(0xae, "SIGP"), \ 195 exit_code(0xac, "STNSM"), \ 196 exit_code(0xad, "STOSM"), \ 197 exit_code(0xb1, "LRA"), \ 198 exit_code(0xb6, "STCTL"), \ [all …]
|
/linux/lib/kunit/ |
H A D | try-catch.c | 42 int exit_code, time_remaining; in kunit_try_catch_run() local 71 exit_code = try_catch->try_result; in kunit_try_catch_run() 73 if (!exit_code) in kunit_try_catch_run() 76 if (exit_code == -EFAULT) in kunit_try_catch_run() 78 else if (exit_code == -EINTR) { in kunit_try_catch_run() 84 } else if (exit_code == -ETIMEDOUT) in kunit_try_catch_run() 86 else if (exit_code) in kunit_try_catch_run() 87 kunit_err(test, "Unknown error: %d\n", exit_code); in kunit_try_catch_run()
|
/linux/arch/arm64/kvm/hyp/vhe/ |
H A D | switch.c | 251 static bool kvm_hyp_handle_timer(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_timer() argument 327 static bool kvm_hyp_handle_eret(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_eret() argument 380 static bool kvm_hyp_handle_tlbi_el2(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_tlbi_el2() argument 429 static bool kvm_hyp_handle_cpacr_el1(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_cpacr_el1() argument 451 static bool kvm_hyp_handle_zcr_el2(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_zcr_el2() argument 471 kvm_hyp_handle_fpsimd(vcpu, exit_code); in kvm_hyp_handle_zcr_el2() 475 static bool kvm_hyp_handle_sysreg_vhe(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_sysreg_vhe() argument 477 if (kvm_hyp_handle_tlbi_el2(vcpu, exit_code)) in kvm_hyp_handle_sysreg_vhe() 480 if (kvm_hyp_handle_timer(vcpu, exit_code)) in kvm_hyp_handle_sysreg_vhe() 483 if (kvm_hyp_handle_cpacr_el1(vcpu, exit_code)) in kvm_hyp_handle_sysreg_vhe() [all …]
|
/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | switch.c | 163 static bool kvm_handle_pvm_sys64(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_handle_pvm_sys64() argument 169 return (kvm_hyp_handle_sysreg(vcpu, exit_code) || in kvm_handle_pvm_sys64() 170 kvm_handle_pvm_sysreg(vcpu, exit_code)); in kvm_handle_pvm_sys64() 204 static inline bool fixup_guest_exit(struct kvm_vcpu *vcpu, u64 *exit_code) in fixup_guest_exit() argument 208 synchronize_vcpu_pstate(vcpu, exit_code); in fixup_guest_exit() 228 *exit_code &= BIT(ARM_EXIT_WITH_SERROR_BIT); in fixup_guest_exit() 229 *exit_code |= ARM_EXCEPTION_IL; in fixup_guest_exit() 232 return __fixup_guest_exit(vcpu, exit_code, handlers); in fixup_guest_exit() 242 u64 exit_code; in __kvm_vcpu_run() local 306 exit_code = __guest_enter(vcpu); in __kvm_vcpu_run() [all …]
|
/linux/tools/testing/selftests/ptrace/ |
H A D | peeksiginfo.c | 47 int ret, exit_code = -1; in check_error_paths() local 99 exit_code = 0; in check_error_paths() 102 return exit_code; in check_error_paths() 108 int i, j, ret, exit_code = -1; in check_direct_path() local 147 exit_code = 0; in check_direct_path() 149 return exit_code; in check_direct_path() 155 int i, exit_code = 1; in main() local 211 exit_code = 0; in main() 218 return exit_code; in main()
|
/linux/tools/testing/selftests/ |
H A D | kselftest_harness.h | 131 _metadata->exit_code = KSFT_SKIP; \ 430 if (_metadata->exit_code) \ 438 _metadata->exit_code = KSFT_FAIL; \ 447 _metadata->exit_code = WEXITSTATUS(status); \ 796 _metadata->exit_code = KSFT_FAIL; \ 807 _metadata->exit_code = KSFT_FAIL; \ 917 int exit_code; member 930 return metadata->exit_code != KSFT_FAIL && in __test_passed() 931 metadata->exit_code <= KSFT_SKIP; in __test_passed() 980 t->exit_code = KSFT_FAIL; in __wait_for_test() [all …]
|
/linux/tools/testing/selftests/kvm/x86/ |
H A D | hyperv_svm_test.c | 97 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in guest_code() 105 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_MSR); in guest_code() 111 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_MSR); in guest_code() 120 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in guest_code() 126 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_MSR); in guest_code() 135 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_MSR); in guest_code() 140 GUEST_ASSERT(vmcb->control.exit_code == HV_SVM_EXITCODE_ENL); in guest_code() 144 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in guest_code()
|
H A D | svm_nested_soft_inject_test.c | 105 __GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL, in l1_guest_code() 107 vmcb->control.exit_code, in l1_guest_code() 135 __GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_HLT, in l1_guest_code() 137 vmcb->control.exit_code, in l1_guest_code()
|
/linux/tools/testing/selftests/coredump/ |
H A D | stackdump_test.c | 310 int exit_code = EXIT_FAILURE; in TEST_F() local 360 exit_code = EXIT_SUCCESS; in TEST_F() 370 _exit(exit_code); in TEST_F() 419 int exit_code = EXIT_FAILURE; in TEST_F() local 452 exit_code = EXIT_SUCCESS; in TEST_F() 460 _exit(exit_code); in TEST_F() 552 int exit_code = EXIT_FAILURE; in TEST_F() local 567 exit_code = EXIT_SUCCESS; in TEST_F() 572 _exit(exit_code); in TEST_F() 749 int exit_code = EXIT_FAILURE; in TEST_F() local [all …]
|
/linux/arch/x86/boot/compressed/ |
H A D | sev-handle-vc.c | 96 void do_boot_stage2_vc(struct pt_regs *regs, unsigned long exit_code) in do_boot_stage2_vc() argument 105 result = vc_init_em_ctxt(&ctxt, regs, exit_code); in do_boot_stage2_vc() 109 result = vc_check_opcode_bytes(&ctxt, exit_code); in do_boot_stage2_vc() 113 switch (exit_code) { in do_boot_stage2_vc() 116 result = vc_handle_rdtsc(boot_ghcb, &ctxt, exit_code); in do_boot_stage2_vc()
|
/linux/tools/sched_ext/include/scx/ |
H A D | user_exit_info.h | 26 s64 exit_code; member 50 if (bpf_core_field_exists((__ei)->exit_code)) \ 51 __uei_name.exit_code = (__ei)->exit_code; \ 87 __uei->exit_code; \
|
/linux/tools/perf/util/ |
H A D | kvm-stat.c | 47 u64 exit_code) in get_exit_reason() argument 50 if (tbl->exit_code == exit_code) in get_exit_reason() 56 (unsigned long long)exit_code, kvm->exit_reasons_isa); in get_exit_reason()
|
/linux/scripts/ |
H A D | modules-check.sh | 11 exit_code=0 20 exit_code=1 26 exit $exit_code
|
/linux/arch/x86/coco/sev/ |
H A D | vc-shared.c | 4 unsigned long exit_code) in vc_check_opcode_bytes() argument 9 switch (exit_code) { in vc_check_opcode_bytes() 89 opcode, exit_code, ctxt->regs->ip); in vc_check_opcode_bytes() 94 static bool vc_decoding_needed(unsigned long exit_code) in vc_decoding_needed() argument 97 return !(exit_code >= SVM_EXIT_EXCP_BASE && in vc_decoding_needed() 98 exit_code <= SVM_EXIT_LAST_EXCP); in vc_decoding_needed() 103 unsigned long exit_code) in vc_init_em_ctxt() argument 110 if (vc_decoding_needed(exit_code)) in vc_init_em_ctxt() 475 unsigned long exit_code) in vc_handle_rdtsc() argument 477 bool rdtscp = (exit_code == SVM_EXIT_RDTSCP); in vc_handle_rdtsc() [all …]
|
H A D | vc-handle.c | 470 u64 exit_code, exit_info_1, exit_info_2; in vc_do_mmio() local 480 exit_code = read ? SVM_VMGEXIT_MMIO_READ : SVM_VMGEXIT_MMIO_WRITE; in vc_do_mmio() 496 return sev_es_ghcb_hv_call(ghcb, ctxt, exit_code, exit_info_1, exit_info_2); in vc_do_mmio() 797 unsigned long exit_code) in vc_handle_exitcode() argument 799 enum es_result result = vc_check_opcode_bytes(ctxt, exit_code); in vc_handle_exitcode() 804 switch (exit_code) { in vc_handle_exitcode() 816 result = vc_handle_rdtsc(ghcb, ctxt, exit_code); in vc_handle_exitcode() 1024 unsigned long exit_code = regs->orig_ax; in handle_vc_boot_ghcb() local 1030 result = vc_init_em_ctxt(&ctxt, regs, exit_code); in handle_vc_boot_ghcb() 1032 result = vc_handle_exitcode(&ctxt, boot_ghcb, exit_code); in handle_vc_boot_ghcb() [all …]
|
/linux/arch/arm64/kvm/hyp/include/hyp/ |
H A D | switch.h | 537 static inline bool kvm_hyp_handle_mops(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_mops() argument 669 static inline bool kvm_hyp_handle_fpsimd(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_fpsimd() argument 890 static inline bool kvm_hyp_handle_sysreg(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_sysreg() argument 910 static inline bool kvm_hyp_handle_cp15_32(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_cp15_32() argument 920 u64 *exit_code) in kvm_hyp_handle_memory_fault() argument 930 static inline bool kvm_hyp_handle_dabt_low(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_dabt_low() argument 932 if (kvm_hyp_handle_memory_fault(vcpu, exit_code)) in kvm_hyp_handle_dabt_low() 951 *exit_code = ARM_EXCEPTION_EL1_SERROR; in kvm_hyp_handle_dabt_low() 966 static inline bool kvm_hyp_handle_exit(struct kvm_vcpu *vcpu, u64 *exit_code, in kvm_hyp_handle_exit() argument 971 return fn(vcpu, exit_code); in kvm_hyp_handle_exit() [all …]
|
/linux/tools/testing/selftests/pidfd/ |
H A D | pidfd_info_test.c | 160 ASSERT_TRUE(WIFSIGNALED(info.exit_code)); in TEST_F() 161 ASSERT_EQ(WTERMSIG(info.exit_code), SIGKILL); in TEST_F() 194 ASSERT_TRUE(WIFEXITED(info.exit_code)); in TEST_F() 195 ASSERT_EQ(WEXITSTATUS(info.exit_code), 0); in TEST_F() 217 ASSERT_TRUE(WIFSIGNALED(info.exit_code)); in TEST_F() 218 ASSERT_EQ(WTERMSIG(info.exit_code), SIGKILL); in TEST_F() 367 ASSERT_TRUE(WIFSIGNALED(info.exit_code)); in TEST_F() 368 ASSERT_EQ(WTERMSIG(info.exit_code), SIGKILL); in TEST_F() 380 ASSERT_TRUE(WIFSIGNALED(info2.exit_code)); in TEST_F() 381 ASSERT_EQ(WTERMSIG(info2.exit_code), SIGKILL); in TEST_F() [all …]
|
/linux/tools/testing/selftests/kselftest/ |
H A D | ksft.py | 77 exit_code = KSFT_PASS 79 exit_code = KSFT_FAIL 83 sys.exit(exit_code)
|
/linux/tools/perf/arch/powerpc/util/ |
H A D | kvm-stat.c | 44 static const char *get_hcall_exit_reason(u64 exit_code) in get_hcall_exit_reason() argument 49 if (tbl->exit_code == exit_code) in get_hcall_exit_reason() 55 (unsigned long long)exit_code); in get_hcall_exit_reason()
|
/linux/tools/testing/selftests/bpf/ |
H A D | verify_sig_setup.sh | 86 local exit_code="$1" 89 if [[ "${exit_code}" -ne 0 ]]; then 94 exit ${exit_code}
|
/linux/tools/testing/selftests/landlock/ |
H A D | scoped_abstract_unix_test.c | 135 _exit(_metadata->exit_code); in TEST_F() 162 _metadata->exit_code = KSFT_FAIL; in TEST_F() 226 _exit(_metadata->exit_code); in TEST_F() 268 _metadata->exit_code = KSFT_FAIL; in TEST_F() 342 _exit(_metadata->exit_code); in TEST_F() 378 _metadata->exit_code = KSFT_FAIL; in TEST_F() 521 _exit(_metadata->exit_code); in TEST_F() 578 _metadata->exit_code = KSFT_FAIL; in TEST_F() 695 _exit(_metadata->exit_code); in TEST_F() 732 _metadata->exit_code = KSFT_FAIL; in TEST_F() [all …]
|