diff options
| author | <jgarzik@pretzel.yyz.us> | 2005-06-04 00:40:40 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-04 00:40:40 -0400 |
| commit | ae20ea8525a80a863f70d332cf47b71bd9f54c1f (patch) | |
| tree | 9d3cedeb65db521a8436b545bd91641549a18d24 /arch/um/kernel/ptrace.c | |
| parent | f497ba735fc9ff4e35a19641143708b3be1c7061 (diff) | |
| parent | 8be3de3fd8469154a2b3e18a4712032dac5b4a53 (diff) | |
Automatic merge of /spare/repo/linux-2.6/.git branch HEAD
Diffstat (limited to 'arch/um/kernel/ptrace.c')
| -rw-r--r-- | arch/um/kernel/ptrace.c | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/arch/um/kernel/ptrace.c b/arch/um/kernel/ptrace.c index 2b75d8d9ba73..71af4d503899 100644 --- a/arch/um/kernel/ptrace.c +++ b/arch/um/kernel/ptrace.c | |||
| @@ -28,9 +28,9 @@ static inline void set_singlestepping(struct task_struct *child, int on) | |||
| 28 | child->thread.singlestep_syscall = 0; | 28 | child->thread.singlestep_syscall = 0; |
| 29 | 29 | ||
| 30 | #ifdef SUBARCH_SET_SINGLESTEPPING | 30 | #ifdef SUBARCH_SET_SINGLESTEPPING |
| 31 | SUBARCH_SET_SINGLESTEPPING(child, on) | 31 | SUBARCH_SET_SINGLESTEPPING(child, on); |
| 32 | #endif | 32 | #endif |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | /* | 35 | /* |
| 36 | * Called by kernel/ptrace.c when detaching.. | 36 | * Called by kernel/ptrace.c when detaching.. |
| @@ -83,7 +83,7 @@ long sys_ptrace(long request, long pid, long addr, long data) | |||
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | #ifdef SUBACH_PTRACE_SPECIAL | 85 | #ifdef SUBACH_PTRACE_SPECIAL |
| 86 | SUBARCH_PTRACE_SPECIAL(child,request,addr,data) | 86 | SUBARCH_PTRACE_SPECIAL(child,request,addr,data); |
| 87 | #endif | 87 | #endif |
| 88 | 88 | ||
| 89 | ret = ptrace_check_attach(child, request == PTRACE_KILL); | 89 | ret = ptrace_check_attach(child, request == PTRACE_KILL); |
| @@ -322,11 +322,9 @@ void syscall_trace(union uml_pt_regs *regs, int entryexit) | |||
| 322 | UPT_SYSCALL_ARG2(regs), | 322 | UPT_SYSCALL_ARG2(regs), |
| 323 | UPT_SYSCALL_ARG3(regs), | 323 | UPT_SYSCALL_ARG3(regs), |
| 324 | UPT_SYSCALL_ARG4(regs)); | 324 | UPT_SYSCALL_ARG4(regs)); |
| 325 | else { | 325 | else audit_syscall_exit(current, |
| 326 | int res = UPT_SYSCALL_RET(regs); | 326 | AUDITSC_RESULT(UPT_SYSCALL_RET(regs)), |
| 327 | audit_syscall_exit(current, AUDITSC_RESULT(res), | 327 | UPT_SYSCALL_RET(regs)); |
| 328 | res); | ||
| 329 | } | ||
| 330 | } | 328 | } |
| 331 | 329 | ||
| 332 | /* Fake a debug trap */ | 330 | /* Fake a debug trap */ |
| @@ -356,14 +354,3 @@ void syscall_trace(union uml_pt_regs *regs, int entryexit) | |||
| 356 | current->exit_code = 0; | 354 | current->exit_code = 0; |
| 357 | } | 355 | } |
| 358 | } | 356 | } |
| 359 | |||
| 360 | /* | ||
| 361 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 362 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 363 | * adjust the settings for this buffer only. This must remain at the end | ||
| 364 | * of the file. | ||
| 365 | * --------------------------------------------------------------------------- | ||
| 366 | * Local variables: | ||
| 367 | * c-file-style: "linux" | ||
| 368 | * End: | ||
| 369 | */ | ||
