Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e43d75a authored by Akiyama, Nobuyuki's avatar Akiyama, Nobuyuki Committed by Tony Luck
Browse files

[IA64] add missing syscall trace clear



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.

Signed-off-by: default avatarAkiyama, Nobuyuki <akiyama.nobuyuk@jp.fujitsu.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 0ac1faca
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1573,6 +1573,7 @@ sys_ptrace (long request, pid_t pid, unsigned long addr, unsigned long data)


	      case PTRACE_DETACH:
	      case PTRACE_DETACH:
		/* detach a process that was attached. */
		/* detach a process that was attached. */
		clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
		ret = ptrace_detach(child, data);
		ret = ptrace_detach(child, data);
		goto out_tsk;
		goto out_tsk;