kernel_optimize_test/arch/m32r/kernel
Christoph Hellwig e34112e396 m32r: use generic ptrace_resume code
Use the generic ptrace_resume code for PTRACE_SYSCALL, PTRACE_CONT,
PTRACE_KILL and PTRACE_SINGLESTEP.  This implies defining
arch_has_single_step in <asm/ptrace.h> and implementing the
user_enable_single_step and user_disable_single_step functions, which also
causes the breakpoint information to be cleared on fork, which could be
considered a bug fix.

Also the TIF_SYSCALL_TRACE thread flag is now cleared on PTRACE_KILL which
it previously wasn't, which is consistent with all architectures using the
modern ptrace code.

The old code only disables the breakpoints on PTRACE_KILL, while after
this patch this also happens for PTRACE_CONT and PTRACE_SYSCALL which
matches the behaviour of the other architetures.  I think this is a
bugfixes, but please double verify this is correct.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-03-12 15:52:39 -08:00
..
align.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
asm-offsets.c kbuild: frv,m32r,sparc64 introduce fake asm-offsets.h file 2005-09-09 22:47:53 +02:00
entry.S m32r: Move GET_THREAD_INFO definition out of asm/thread_info.h. 2009-09-23 00:29:39 +09:00
head.S m32r: Move the spi_stack_top and spu_stack_top into .init.data section. 2009-09-23 00:29:40 +09:00
init_task.c Use new __init_task_data macro in arch init_task.c files. 2009-09-21 06:27:08 +02:00
irq.c genirq: Convert irq_desc.lock to raw_spinlock 2009-12-14 23:55:33 +01:00
m32r_ksyms.c m32r: export delay loop symbols 2009-10-04 12:02:36 +09:00
Makefile m32r: build fix for __stringify macro 2009-05-02 21:43:26 +09:00
module.c module: cleanup FIXME comments about trimming exception table entries. 2009-06-12 21:47:05 +09:30
process.c ptrace: remove PT_DTRACE from arch/m32r 2009-06-18 13:03:49 -07:00
ptrace.c m32r: use generic ptrace_resume code 2010-03-12 15:52:39 -08:00
setup.c procfs: constify function pointer tables 2008-02-08 09:22:38 -08:00
signal.c KEYS: Add missing linux/tracehook.h #inclusions 2009-09-09 18:30:02 +10:00
smp.c m32r: Should index be positive? 2009-11-04 08:39:26 +09:00
smpboot.c cpumask: Use accessors for cpu_*_mask: m32r 2009-09-24 09:34:47 +09:30
sys_m32r.c Add generic sys_olduname() 2010-03-12 15:52:32 -08:00
syscall_table.S Unify sys_mmap* 2009-12-11 06:44:29 -05:00
time.c arch/m32r: Use DIV_ROUND_CLOSEST 2009-11-04 08:31:50 +09:00
traps.c m32r: Fix IPI function calls for SMP 2009-10-04 12:02:37 +09:00
vmlinux.lds.S m32r: add NOTES to vmlinux.lds.S to remove .note.gnu.build-id section 2009-11-04 08:33:23 +09:00