diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-05-04 20:33:42 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-05-04 20:33:42 +0200 |
commit | 98bb318864ed10ae374573f1382147f113642059 (patch) | |
tree | c1b45f1c6bedadfec2040446f5509257a7b12be2 /arch/arm/kernel | |
parent | 5933f2ae353a93b1d3b501bc63c925531849bbc7 (diff) | |
parent | e0ac8457d020c0289ea566917267da9e5e6d9865 (diff) | |
download | linux-98bb318864ed10ae374573f1382147f113642059.tar.gz linux-98bb318864ed10ae374573f1382147f113642059.tar.bz2 linux-98bb318864ed10ae374573f1382147f113642059.zip |
Merge branch 'perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into perf/urgent
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/ptrace.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c index 2bf27f364d09..8182f45ca493 100644 --- a/arch/arm/kernel/ptrace.c +++ b/arch/arm/kernel/ptrace.c @@ -767,12 +767,20 @@ long arch_ptrace(struct task_struct *child, long request, #ifdef CONFIG_HAVE_HW_BREAKPOINT case PTRACE_GETHBPREGS: + if (ptrace_get_breakpoints(child) < 0) + return -ESRCH; + ret = ptrace_gethbpregs(child, addr, (unsigned long __user *)data); + ptrace_put_breakpoints(child); break; case PTRACE_SETHBPREGS: + if (ptrace_get_breakpoints(child) < 0) + return -ESRCH; + ret = ptrace_sethbpregs(child, addr, (unsigned long __user *)data); + ptrace_put_breakpoints(child); break; #endif |