[PATCH] ia64: add missing syscall trace clear

From: Akiyama, Nobuyuki <akiyama.nobuyuk_at_jp.fujitsu.com>
Date: 2007-02-23 00:50:38
Hi,

The ptrace misses clearing the syscall trace flag.
The increased syscall overhead is retained after the trace is finished.
This case happens when strace is terminated by force.

Thanks,
Akiyama

Signed-off-by: Akiyama, Nobuyuki <akiyama.nobuyuk@jp.fujitsu.com>
---

diff -Nurp linux-2.6.21-rc1.orig/arch/ia64/kernel/ptrace.c linux-2.6.21-rc1.mod/arch/ia64/kernel/ptrace.c
--- linux-2.6.21-rc1.orig/arch/ia64/kernel/ptrace.c	2007-02-22 17:15:38.000000000 +0900
+++ linux-2.6.21-rc1.mod/arch/ia64/kernel/ptrace.c	2007-02-22 22:12:50.000000000 +0900
@@ -1573,6 +1573,7 @@ sys_ptrace (long request, pid_t pid, uns
 
 	      case PTRACE_DETACH:
 		/* detach a process that was attached. */
+		clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
 		ret = ptrace_detach(child, data);
 		goto out_tsk;

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Feb 23 00:52:38 2007

This archive was generated by hypermail 2.1.8 : 2007-02-23 00:52:57 EST