return ret; 
if (ret == 0) return 0;  if (unlikely(current->audit_context)) audit_syscall_exit(current, AUDITSC_RESULT(regs->eax), regs->eax); return 1; 
int do_syscall_trace(struct pt_regs *regs, int entryexit){	int is_sysemu, is_systrace, is_singlestep, ret = 0;	/* do the secure computing check first */	secure_computing(regs->orig_eax);	if (unlikely(current->audit_context) && entryexit)		audit_syscall_exit(current, AUDITSC_RESULT(regs->eax), regs->eax);	if (!(current->ptrace & PT_PTRACED))		goto out;	is_sysemu = test_thread_flag(TIF_SYSCALL_EMU);	is_systrace = test_thread_flag(TIF_SYSCALL_TRACE);	is_singlestep = test_thread_flag(TIF_SINGLESTEP);	/* We can detect the case of coming from PTRACE_SYSEMU and now running	 * with PTRACE_SYSCALL or PTRACE_SINGLESTEP, by TIF_SYSCALL_EMU being	 * set additionally.	 * If so let's reset the flag and return without action (no singlestep	 * nor syscall tracing, since no actual step has been executed).	 */	if (is_sysemu && (is_systrace || is_singlestep)) {		clear_thread_flag(TIF_SYSCALL_EMU);		goto out;	}	/* Fake a debug trap */	if (test_thread_flag(TIF_SINGLESTEP))		send_sigtrap(current, regs, 0);	if (!is_systrace && !is_sysemu)		goto out;	/* the 0x80 provides a way for the tracing parent to distinguish	   between a syscall stop and SIGTRAP delivery */	/* Note that the debugger could change the result of test_thread_flag!*/	ptrace_notify(SIGTRAP | ((current->ptrace & PT_TRACESYSGOOD) ? 0x80 : 0));	/*	 * this isn't the same as continuing with a signal, but it will do	 * for normal use.  strace only continues with a signal if the	 * stopping signal is not SIGTRAP.  -brl	 */	if (current->exit_code) {		send_sig(current->exit_code, current, 1);		current->exit_code = 0;	}	ret = is_sysemu; out:	if (unlikely(current->audit_context) && !entryexit)		audit_syscall_entry(current, AUDIT_ARCH_I386, regs->orig_eax,				    regs->ebx, regs->ecx, regs->edx, regs->esi);	return ret;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c8c86cecd1d1a2722acb28a01d1babf7b6993697/ptrace.c/clean/arch/i386/kernel/ptrace.c