diff options
| author | 2010-11-26 15:07:02 +0100 | |
|---|---|---|
| committer | 2010-11-26 15:07:02 +0100 | |
| commit | 6c869e772c72d509d0db243a56c205ef48a29baf (patch) | |
| tree | 9a290f1742526a8816f94560cb09bc0a09c910de /arch/x86/kernel/hw_breakpoint.c | |
| parent | Merge commit 'v2.6.37-rc3' into perf/core (diff) | |
| parent | perf: Fix the software context switch counter (diff) | |
| download | linux-dev-6c869e772c72d509d0db243a56c205ef48a29baf.tar.xz linux-dev-6c869e772c72d509d0db243a56c205ef48a29baf.zip | |
Merge branch 'perf/urgent' into perf/core
Conflicts:
arch/x86/kernel/apic/hw_nmi.c
Merge reason: Resolve conflict, queue up dependent patch.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/hw_breakpoint.c')
| -rw-r--r-- | arch/x86/kernel/hw_breakpoint.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/hw_breakpoint.c b/arch/x86/kernel/hw_breakpoint.c index ff15c9dcc25d..42c594254507 100644 --- a/arch/x86/kernel/hw_breakpoint.c +++ b/arch/x86/kernel/hw_breakpoint.c @@ -433,6 +433,10 @@ static int __kprobes hw_breakpoint_handler(struct die_args *args) dr6_p = (unsigned long *)ERR_PTR(args->err); dr6 = *dr6_p; + /* If it's a single step, TRAP bits are random */ + if (dr6 & DR_STEP) + return NOTIFY_DONE; + /* Do an early return if no trap bits are set in DR6 */ if ((dr6 & DR_TRAP_BITS) == 0) return NOTIFY_DONE; |
