/* With TIF_SYSCALL_EMU set we want to ignore TIF_SINGLESTEP */ 
/* With TIF_SYSCALL_EMU set we want to ignore TIF_SINGLESTEP for syscall * interception. */ 
int do_syscall_trace(struct pt_regs *regs, int entryexit){	int is_sysemu = test_thread_flag(TIF_SYSCALL_EMU), ret = 0;	/* With TIF_SYSCALL_EMU set we want to ignore TIF_SINGLESTEP */	int is_singlestep = !is_sysemu && test_thread_flag(TIF_SINGLESTEP);	/* 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;	/* If a process stops on the 1st tracepoint with SYSCALL_TRACE	 * and then is resumed with SYSEMU_SINGLESTEP, it will come in	 * here. We have to check this and return */	if (is_sysemu && entryexit)		return 0;	/* Fake a debug trap */	if (is_singlestep)		send_sigtrap(current, regs, 0); 	if (!test_thread_flag(TIF_SYSCALL_TRACE) && !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);	if (ret == 0)		return 0;	regs->orig_eax = -1; /* force skip of syscall restarting */	if (unlikely(current->audit_context))		audit_syscall_exit(current, AUDITSC_RESULT(regs->eax), regs->eax);	return 1;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ab1c23c24471c760c573f4fb0dd78e166ddfd844/ptrace.c/buggy/arch/i386/kernel/ptrace.c