diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-11-18 10:37:51 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-11-18 10:37:51 +0100 |
commit | fcf48a725a176ba12aa7be64c50190deaa2f86df (patch) | |
tree | 5d611ba5b1eb4dd821c93ca2f9d08078b563305a /arch | |
parent | 0e2af2a9abf94b408ff70679b692a8644fed4aab (diff) | |
parent | 3c502e7a0255d82621ff25d60cc816624830497e (diff) | |
download | blackbird-op-linux-fcf48a725a176ba12aa7be64c50190deaa2f86df.tar.gz blackbird-op-linux-fcf48a725a176ba12aa7be64c50190deaa2f86df.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')
-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; |