lkml.org 
[lkml]   [2009]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 3/4] ptrace: remove PT_DTRACE from m68k, m68knommu
Date
Oleg Nesterov <oleg@redhat.com> writes:

> m68k sets PT_DTRACE in trap_c() but never uses it.
>
> Signed-off-by: Oleg Nesterov <oleg@redhat.com>
>
> arch/m68k/kernel/traps.c | 1 -
> arch/m68knommu/kernel/asm-offsets.c | 1 -
> arch/m68knommu/kernel/traps.c | 1 -
> 3 files changed, 3 deletions(-)
>
> --- PTRACE/arch/m68k/kernel/traps.c~DT_3_SET 2009-04-06 00:03:35.000000000 +0200
> +++ PTRACE/arch/m68k/kernel/traps.c 2009-04-22 21:52:23.000000000 +0200
> @@ -1057,7 +1057,6 @@ asmlinkage void trap_c(struct frame *fp)
> if (fp->ptregs.sr & PS_S) {
> if ((fp->ptregs.vector >> 2) == VEC_TRACE) {
> /* traced a trapping instruction */
> - current->ptrace |= PT_DTRACE;

This is supposed to be setting the TIF_DELAYED_TRACE thread flag.

Andreas.

--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."


\
 
 \ /
  Last update: 2009-04-24 12:09    [W:0.059 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site