Commit d3ab3a62 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu

Blackfin arch: ptrace - cleanup debug messages and style

Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent dabaad5b
...@@ -280,7 +280,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) ...@@ -280,7 +280,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
/* when I and D space are separate, this will have to be fixed. */ /* when I and D space are separate, this will have to be fixed. */
case PTRACE_POKEDATA: case PTRACE_POKEDATA:
printk(KERN_NOTICE "ptrace: PTRACE_PEEKDATA\n"); pr_debug("ptrace: PTRACE_PEEKDATA\n");
/* fall through */ /* fall through */
case PTRACE_POKETEXT: /* write the word at location addr. */ case PTRACE_POKETEXT: /* write the word at location addr. */
{ {
...@@ -351,7 +351,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) ...@@ -351,7 +351,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
{ /* restart after signal. */ { /* restart after signal. */
long tmp; long tmp;
pr_debug("ptrace_cont\n"); pr_debug("ptrace: syscall/cont\n");
ret = -EIO; ret = -EIO;
if (!valid_signal(data)) if (!valid_signal(data))
...@@ -365,7 +365,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) ...@@ -365,7 +365,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
/* make sure the single step bit is not set. */ /* make sure the single step bit is not set. */
tmp = get_reg(child, PT_SYSCFG) & ~(TRACE_BITS); tmp = get_reg(child, PT_SYSCFG) & ~(TRACE_BITS);
put_reg(child, PT_SYSCFG, tmp); put_reg(child, PT_SYSCFG, tmp);
pr_debug("before wake_up_process\n"); pr_debug("ptrace: before wake_up_process\n");
wake_up_process(child); wake_up_process(child);
ret = 0; ret = 0;
break; break;
...@@ -394,7 +394,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) ...@@ -394,7 +394,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
{ /* set the trap flag. */ { /* set the trap flag. */
long tmp; long tmp;
pr_debug("single step\n"); pr_debug("ptrace: single step\n");
ret = -EIO; ret = -EIO;
if (!valid_signal(data)) if (!valid_signal(data))
break; break;
...@@ -411,21 +411,16 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) ...@@ -411,21 +411,16 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
} }
case PTRACE_GETREGS: case PTRACE_GETREGS:
{ /* Get all gp regs from the child. */
ret = ptrace_getregs(child, datap);
/* Get all gp regs from the child. */ break;
ret = ptrace_getregs(child, datap);
break;
}
case PTRACE_SETREGS: case PTRACE_SETREGS:
{ printk(KERN_WARNING "ptrace: SETREGS: **** NOT IMPLEMENTED ***\n");
printk(KERN_NOTICE /* Set all gp regs in the child. */
"ptrace: SETREGS: **** NOT IMPLEMENTED ***\n"); ret = 0;
/* Set all gp regs in the child. */ break;
ret = 0;
break;
}
default: default:
ret = ptrace_request(child, request, addr, data); ret = ptrace_request(child, request, addr, data);
break; break;
...@@ -436,7 +431,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) ...@@ -436,7 +431,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
asmlinkage void syscall_trace(void) asmlinkage void syscall_trace(void)
{ {
if (!test_thread_flag(TIF_SYSCALL_TRACE)) if (!test_thread_flag(TIF_SYSCALL_TRACE))
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment