/linux-4.4.14/tools/testing/selftests/ptrace/ |
H A D | peeksiginfo.c | 46 int ret, exit_code = -1; check_error_paths() local 98 exit_code = 0; check_error_paths() 101 return exit_code; check_error_paths() 107 int i, j, ret, exit_code = -1; check_direct_path() local 146 exit_code = 0; check_direct_path() 148 return exit_code; check_direct_path() 154 int i, exit_code = 1; main() local 210 exit_code = 0; main() 217 return exit_code; main()
|
/linux-4.4.14/arch/sparc/include/asm/ |
H A D | ptrace.h | 27 #define arch_ptrace_stop_needed(exit_code, info) \ 32 #define arch_ptrace_stop(exit_code, info) \ 96 #define arch_ptrace_stop_needed(exit_code, info) \ 101 #define arch_ptrace_stop(exit_code, info) \
|
H A D | hypervisor.h | 101 void sun4v_mach_exit(unsigned long exit_code);
|
/linux-4.4.14/arch/s390/include/uapi/asm/ |
H A D | sie.h | 83 #define exit_code(opcode, mnemonic) \ macro 182 exit_code(0x0a, "SVC"), \ 183 exit_code(0x80, "SSM"), \ 184 exit_code(0x82, "LPSW"), \ 185 exit_code(0x83, "DIAG"), \ 186 exit_code(0xae, "SIGP"), \ 187 exit_code(0xac, "STNSM"), \ 188 exit_code(0xad, "STOSM"), \ 189 exit_code(0xb1, "LRA"), \ 190 exit_code(0xb6, "STCTL"), \ 191 exit_code(0xb7, "LCTL"), \ 192 exit_code(0xee, "PLO")
|
/linux-4.4.14/arch/unicore32/kernel/ |
H A D | ptrace.c | 142 if (current->exit_code) { syscall_trace() 143 send_sig(current->exit_code, current, 1); syscall_trace() 144 current->exit_code = 0; syscall_trace()
|
/linux-4.4.14/arch/x86/kvm/ |
H A D | trace.h | 553 TP_PROTO(__u64 rip, __u32 exit_code, 556 TP_ARGS(rip, exit_code, exit_info1, exit_info2, 561 __field( __u32, exit_code ) 571 __entry->exit_code = exit_code; 582 __print_symbolic(__entry->exit_code, VMX_EXIT_REASONS) : 583 __print_symbolic(__entry->exit_code, SVM_EXIT_REASONS), 592 TP_PROTO(__u32 exit_code, 595 TP_ARGS(exit_code, exit_info1, exit_info2, 599 __field( __u32, exit_code ) 608 __entry->exit_code = exit_code; 619 __print_symbolic(__entry->exit_code, VMX_EXIT_REASONS) : 620 __print_symbolic(__entry->exit_code, SVM_EXIT_REASONS),
|
H A D | svm.c | 1896 if (svm->vmcb->control.exit_code != SVM_EXIT_NPF) { nested_svm_inject_npf_exit() 1901 svm->vmcb->control.exit_code = SVM_EXIT_NPF; nested_svm_inject_npf_exit() 1962 svm->vmcb->control.exit_code = SVM_EXIT_EXCP_BASE + nr; nested_svm_check_exception() 1994 svm->vmcb->control.exit_code = SVM_EXIT_INTR; nested_svm_intr() 2022 svm->vmcb->control.exit_code = SVM_EXIT_NMI; nested_svm_nmi() 2106 u32 exit_code = svm->vmcb->control.exit_code; nested_svm_exit_special() local 2108 switch (exit_code) { nested_svm_exit_special() 2138 u32 exit_code = svm->vmcb->control.exit_code; nested_svm_intercept() local 2141 switch (exit_code) { nested_svm_intercept() 2149 u32 bit = 1U << (exit_code - SVM_EXIT_READ_CR0); nested_svm_intercept() 2155 u32 bit = 1U << (exit_code - SVM_EXIT_READ_DR0); nested_svm_intercept() 2161 u32 excp_bits = 1 << (exit_code - SVM_EXIT_EXCP_BASE); nested_svm_intercept() 2165 else if ((exit_code == SVM_EXIT_EXCP_BASE + PF_VECTOR) && nested_svm_intercept() 2175 u64 exit_bits = 1ULL << (exit_code - SVM_EXIT_INTR); nested_svm_intercept() 2213 dst->exit_code = from->exit_code; copy_vmcb_control_area() 2233 trace_kvm_nested_vmexit_inject(vmcb->control.exit_code, nested_svm_vmexit() 2273 nested_vmcb->control.exit_code = vmcb->control.exit_code; nested_svm_vmexit() 2411 nested_vmcb->control.exit_code = SVM_EXIT_ERR; nested_svm_vmrun() 2632 svm->vmcb->control.exit_code = SVM_EXIT_ERR; vmrun_interception() 2847 svm->vmcb->control.exit_code = SVM_EXIT_CR0_SEL_WRITE; check_selective_cr0_intercepted() 2869 if (svm->vmcb->control.exit_code == SVM_EXIT_CR0_SEL_WRITE) cr_interception() 2872 cr = svm->vmcb->control.exit_code - SVM_EXIT_READ_CR0; cr_interception() 2949 dr = svm->vmcb->control.exit_code - SVM_EXIT_READ_DR0; dr_interception() 3328 pr_err("%-20s%08x\n", "exit_code:", control->exit_code); dump_vmcb() 3423 u32 exit_code = svm->vmcb->control.exit_code; handle_exit() local 3425 trace_kvm_exit(exit_code, vcpu, KVM_ISA_SVM); handle_exit() 3442 trace_kvm_nested_vmexit(svm->vmcb->save.rip, exit_code, handle_exit() 3460 if (svm->vmcb->control.exit_code == SVM_EXIT_ERR) { handle_exit() 3463 = svm->vmcb->control.exit_code; handle_exit() 3470 exit_code != SVM_EXIT_EXCP_BASE + PF_VECTOR && handle_exit() 3471 exit_code != SVM_EXIT_NPF && exit_code != SVM_EXIT_TASK_SWITCH && handle_exit() 3472 exit_code != SVM_EXIT_INTR && exit_code != SVM_EXIT_NMI) handle_exit() 3474 "exit_code 0x%x\n", handle_exit() 3476 exit_code); handle_exit() 3478 if (exit_code >= ARRAY_SIZE(svm_exit_handlers) handle_exit() 3479 || !svm_exit_handlers[exit_code]) { handle_exit() 3480 WARN_ONCE(1, "svm: unexpected exit reason 0x%x\n", exit_code); handle_exit() 3485 return svm_exit_handlers[exit_code](svm); handle_exit() 3897 if (unlikely(svm->vmcb->control.exit_code == SVM_EXIT_NMI)) svm_vcpu_run() 3904 if (unlikely(svm->vmcb->control.exit_code == SVM_EXIT_NMI)) svm_vcpu_run() 3914 if (svm->vmcb->control.exit_code == SVM_EXIT_EXCP_BASE + PF_VECTOR) svm_vcpu_run() 3926 if (unlikely(svm->vmcb->control.exit_code == svm_vcpu_run() 4071 #define PRE_EX(exit) { .exit_code = (exit), \ 4073 #define POST_EX(exit) { .exit_code = (exit), \ 4075 #define POST_MEM(exit) { .exit_code = (exit), \ 4079 u32 exit_code; member in struct:__x86_intercept 4151 switch (icpt_info.exit_code) { svm_check_intercept() 4154 icpt_info.exit_code += info->modrm_reg; svm_check_intercept() 4161 icpt_info.exit_code += info->modrm_reg; svm_check_intercept() 4163 if (icpt_info.exit_code != SVM_EXIT_WRITE_CR0 || svm_check_intercept() 4184 icpt_info.exit_code = SVM_EXIT_CR0_SEL_WRITE; svm_check_intercept() 4190 icpt_info.exit_code += info->modrm_reg; svm_check_intercept() 4244 vmcb->control.exit_code = icpt_info.exit_code; svm_check_intercept()
|
/linux-4.4.14/arch/cris/arch-v10/kernel/ |
H A D | ptrace.c | 198 if (current->exit_code) { do_syscall_trace() 199 send_sig(current->exit_code, current, 1); do_syscall_trace() 200 current->exit_code = 0; do_syscall_trace()
|
/linux-4.4.14/kernel/ |
H A D | exit.c | 472 father->signal->group_exit_code ?: father->exit_code); 732 tsk->exit_code = code; do_exit() 855 do_group_exit(int exit_code) do_group_exit() argument 859 BUG_ON(exit_code & 0x80); /* core dumps don't get here */ do_group_exit() 862 exit_code = sig->group_exit_code; do_group_exit() 869 exit_code = sig->group_exit_code; do_group_exit() 871 sig->group_exit_code = exit_code; do_group_exit() 878 do_exit(exit_code); do_group_exit() 993 int exit_code = p->exit_code; wait_task_zombie() local 1000 if ((exit_code & 0x7f) == 0) { wait_task_zombie() 1002 status = exit_code >> 8; wait_task_zombie() 1004 why = (exit_code & 0x80) ? CLD_DUMPED : CLD_KILLED; wait_task_zombie() 1005 status = exit_code & 0x7f; wait_task_zombie() 1083 ? p->signal->group_exit_code : p->exit_code; wait_task_zombie() 1136 return &p->exit_code; task_stopped_code() 1166 int retval, exit_code, *p_code, why; wait_task_stopped() local 1179 exit_code = 0; wait_task_stopped() 1186 exit_code = *p_code; wait_task_stopped() 1187 if (!exit_code) wait_task_stopped() 1196 if (!exit_code) wait_task_stopped() 1213 return wait_noreap_copyout(wo, p, pid, uid, why, exit_code); wait_task_stopped() 1218 retval = put_user((exit_code << 8) | 0x7f, wo->wo_stat); wait_task_stopped() 1228 retval = put_user(exit_code, &infop->si_status); wait_task_stopped()
|
H A D | tsacct.c | 48 stats->ac_exitcode = tsk->exit_code; bacct_add_tsk()
|
H A D | signal.c | 1620 info.si_status = tsk->exit_code & 0x7f; do_notify_parent() 1621 if (tsk->exit_code & 0x80) do_notify_parent() 1623 else if (tsk->exit_code & 0x7f) do_notify_parent() 1627 info.si_status = tsk->exit_code >> 8; do_notify_parent() 1714 info.si_status = tsk->exit_code & 0x7f; do_notify_parent_cldstop() 1775 * is gone, we keep current->exit_code unless clear_code. 1777 static void ptrace_stop(int exit_code, int why, int clear_code, siginfo_t *info) 1783 if (arch_ptrace_stop_needed(exit_code, info)) { 1796 arch_ptrace_stop(exit_code, info); 1812 current->exit_code = exit_code; 1876 current->exit_code = 0; 1899 static void ptrace_do_notify(int signr, int exit_code, int why) ptrace_do_notify() argument 1905 info.si_code = exit_code; ptrace_do_notify() 1910 ptrace_stop(exit_code, why, 1, &info); ptrace_do_notify() 1913 void ptrace_notify(int exit_code) ptrace_notify() argument 1915 BUG_ON((exit_code & (0x7f | ~0xffff)) != SIGTRAP); ptrace_notify() 1920 ptrace_do_notify(SIGTRAP, exit_code, CLD_TRAPPED); ptrace_notify() 2053 * accompanying siginfo. If stopped, lower eight bits of exit_code contain 2057 * number as exit_code and no siginfo. 2078 current->exit_code = 0; do_jobctl_trap() 2098 signr = current->exit_code; ptrace_signal() 2102 current->exit_code = 0; ptrace_signal()
|
H A D | ptrace.c | 499 child->exit_code = data; ptrace_detach() 765 * Change ->exit_code and ->state under siglock to avoid the race ptrace_resume() 766 * with wait_task_stopped() in between; a non-zero ->exit_code will ptrace_resume() 769 * Note that we need siglock even if ->exit_code == data and/or this ptrace_resume() 780 child->exit_code = data; ptrace_resume()
|
H A D | kthread.c | 494 ret = k->exit_code; kthread_stop()
|
/linux-4.4.14/arch/metag/include/asm/ |
H A D | processor.h | 186 static inline void hard_processor_halt(int exit_code) hard_processor_halt() argument 194 : : "r" (exit_code), "K" (OP3_EXIT)); hard_processor_halt()
|
/linux-4.4.14/arch/avr32/kernel/ |
H A D | ptrace.c | 209 if (current->exit_code) { syscall_trace() 211 current->exit_code, current->pid); syscall_trace() 212 send_sig(current->exit_code, current, 1); syscall_trace() 213 current->exit_code = 0; syscall_trace()
|
/linux-4.4.14/tools/perf/util/ |
H A D | kvm-stat.h | 65 unsigned long exit_code; member in struct:exit_reasons_table
|
/linux-4.4.14/arch/xtensa/kernel/ |
H A D | ptrace.c | 332 if (current->exit_code) { do_syscall_trace() 333 send_sig(current->exit_code, current, 1); do_syscall_trace() 334 current->exit_code = 0; do_syscall_trace()
|
/linux-4.4.14/include/linux/ |
H A D | tracehook.h | 73 if (current->exit_code) { ptrace_report_syscall() 74 send_sig(current->exit_code, current, 1); ptrace_report_syscall() 75 current->exit_code = 0; ptrace_report_syscall()
|
H A D | ptrace.h | 52 extern void ptrace_notify(int exit_code); 349 * @code: current->exit_code value ptrace will stop with 370 * @code: current->exit_code value ptrace will stop with
|
H A D | sched.h | 1453 int exit_code, exit_signal; member in struct:task_struct
|
/linux-4.4.14/arch/m68k/kernel/ |
H A D | ptrace.c | 283 if (current->exit_code) { syscall_trace() 284 send_sig(current->exit_code, current, 1); syscall_trace() 285 current->exit_code = 0; syscall_trace()
|
/linux-4.4.14/fs/ |
H A D | coredump.c | 286 static int zap_process(struct task_struct *start, int exit_code, int flags) zap_process() argument 293 start->signal->group_exit_code = exit_code; zap_process() 309 struct core_state *core_state, int exit_code) zap_threads() 319 nr = zap_process(tsk, exit_code, 0); zap_threads() 371 nr += zap_process(p, exit_code, for_each_thread() 384 static int coredump_wait(int exit_code, struct core_state *core_state) coredump_wait() argument 396 core_waiters = zap_threads(tsk, mm, core_state, exit_code); coredump_wait() 308 zap_threads(struct task_struct *tsk, struct mm_struct *mm, struct core_state *core_state, int exit_code) zap_threads() argument
|
/linux-4.4.14/arch/cris/arch-v32/kernel/ |
H A D | ptrace.c | 267 if (current->exit_code) { do_syscall_trace() 268 send_sig(current->exit_code, current, 1); do_syscall_trace() 269 current->exit_code = 0; do_syscall_trace()
|
/linux-4.4.14/arch/score/kernel/ |
H A D | ptrace.c | 379 if (current->exit_code) { do_syscall_trace() 380 send_sig(current->exit_code, current, 1); do_syscall_trace() 381 current->exit_code = 0; do_syscall_trace()
|
/linux-4.4.14/include/uapi/linux/ |
H A D | cn_proc.h | 123 __u32 exit_code, exit_signal; member in struct:proc_event::__anon13973::exit_proc_event
|
/linux-4.4.14/init/ |
H A D | do_mounts_rd.c | 310 static int exit_code; variable 341 exit_code = 1; error()
|
/linux-4.4.14/arch/m32r/kernel/ |
H A D | ptrace.c | 697 if (current->exit_code) { do_syscall_trace() 698 send_sig(current->exit_code, current, 1); do_syscall_trace() 699 current->exit_code = 0; do_syscall_trace()
|
/linux-4.4.14/arch/x86/include/asm/ |
H A D | svm.h | 74 u32 exit_code; member in struct:vmcb_control_area
|
/linux-4.4.14/drivers/connector/ |
H A D | cn_proc.c | 289 ev->event_data.exit.exit_code = task->exit_code; proc_exit_connector()
|
/linux-4.4.14/drivers/misc/altera-stapl/ |
H A D | altera.c | 222 int *exit_code, altera_execute() 661 *exit_code = 0; /* success */ altera_execute() 890 *exit_code = stack[--stack_ptr]; altera_execute() 2427 int exit_code = 0; altera_init() local 2509 &error_address, &exit_code, &format_version); altera_init() 2511 if (exit_code) altera_init() 218 altera_execute(struct altera_state *astate, u8 *p, s32 program_size, s32 *error_address, int *exit_code, int *format_version) altera_execute() argument
|
/linux-4.4.14/tools/perf/ |
H A D | builtin-kvm.c | 74 u64 exit_code) get_exit_reason() 77 if (tbl->exit_code == exit_code) get_exit_reason() 83 (unsigned long long)exit_code, kvm->exit_reasons_isa); get_exit_reason() 72 get_exit_reason(struct perf_kvm_stat *kvm, struct exit_reasons_table *tbl, u64 exit_code) get_exit_reason() argument
|
/linux-4.4.14/tools/lib/traceevent/ |
H A D | plugin_kvm.c | 336 if (print_exit_reason(s, record, event, "exit_code") < 0) kvm_nested_vmexit_inject_handler()
|
/linux-4.4.14/fs/proc/ |
H A D | array.c | 545 seq_put_decimal_ll(m, ' ', task->exit_code); do_task_stat()
|