Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95341
b: refs/heads/master
c: 941af34
h: refs/heads/master
i:
  95339: 9bb3274
v: v3
  • Loading branch information
Martin Schwidefsky committed Apr 30, 2008
1 parent 71526f7 commit 474ac86
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 39 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 613e1def6b52c399a8b72a5e11bc2e57d2546fb8
refs/heads/master: 941af343e2e25ff7afce43a3c7e2922643b8cd48
37 changes: 1 addition & 36 deletions trunk/arch/s390/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,18 +607,8 @@ do_ptrace_emu31(struct task_struct *child, long request, long addr, long data)
}
#endif

static int
do_ptrace(struct task_struct *child, long request, long addr, long data)
long arch_ptrace(struct task_struct *child, long request, long addr, long data)
{
int ret;

if (request == PTRACE_ATTACH)
return ptrace_attach(child);

ret = ptrace_check_attach(child, request == PTRACE_KILL);
if (ret < 0)
return ret;

switch (request) {
case PTRACE_SYSCALL:
/* continue and stop at next (return from) syscall */
Expand Down Expand Up @@ -673,31 +663,6 @@ do_ptrace(struct task_struct *child, long request, long addr, long data)
return -EIO;
}

asmlinkage long
sys_ptrace(long request, long pid, long addr, long data)
{
struct task_struct *child;
int ret;

lock_kernel();
if (request == PTRACE_TRACEME) {
ret = ptrace_traceme();
goto out;
}

child = ptrace_get_task_struct(pid);
if (IS_ERR(child)) {
ret = PTR_ERR(child);
goto out;
}

ret = do_ptrace(child, request, addr, data);
put_task_struct(child);
out:
unlock_kernel();
return ret;
}

asmlinkage void
syscall_trace(struct pt_regs *regs, int entryexit)
{
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-s390/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,6 @@ struct user_regs_struct
};

#ifdef __KERNEL__
#define __ARCH_SYS_PTRACE 1

/*
* These are defined as per linux/ptrace.h, which see.
*/
Expand Down

0 comments on commit 474ac86

Please sign in to comment.