]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Support for instruction breakpoints
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 24 Jun 2010 08:00:24 +0000 (10:00 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Thu, 24 Jun 2010 21:35:27 +0000 (23:35 +0200)
commite2b14df1a16c8a19afa8ea2eb7b5d325870afafa
tree3813c123ff81a65cc39792a9768c6d53abd504fc
parentba359fff7304a6096067696465f108a194562d56
x86: Support for instruction breakpoints

Instruction breakpoints need to have a specific length of 0 to
be working. Bring this support but also take care the user is not
trying to set an unsupported length, like a range breakpoint for
example.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Prasad <prasad@linux.vnet.ibm.com>
Cc: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Jason Wessel <jason.wessel@windriver.com>
arch/x86/include/asm/hw_breakpoint.h
arch/x86/kernel/hw_breakpoint.c