Skip to content

RFC Hardware Breakpoint interfaces - v2

K.Prasad lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Introducing generic hardware breakpoint handler interfacesinclude/asm-generic/hw_breakpoint.h kernel/hw_breakpoint.c+972 -02 replies
2/9x86 architecture implementation of Hardware Breakpoint interfacesarch/x86/kernel/Makefile arch/x86/kernel/hw_breakpoint.c include/asm-x86/hw_breakpoint.h+570 -10 replies
3/9Modifying generic debug exception to use virtual debug registersarch/x86/kernel/traps.c+24 -440 replies
4/9Modify kprobe exception handler to recognise single-stepping by HW Breakpoint handlerarch/x86/include/asm/debugreg.h arch/x86/include/asm/processor.h arch/x86/kernel/kprobes.c+38 -70 replies
5/9Use wrapper routines around debug registers in processor related functionsarch/x86/kernel/smpboot.c arch/x86/power/cpu_32.c arch/x86/power/cpu_64.c+9 -250 replies
6/9Use virtual debug registers in process/thread handling codearch/x86/kernel/process_32.c arch/x86/kernel/process_64.c+51 -350 replies
7/9Modify signal handling code to refrain from re-enabling HW Breakpointsarch/x86/kernel/signal_32.c arch/x86/kernel/signal_64.c+0 -180 replies
8/9Modify Ptrace routines to access breakpoint registersarch/x86/kernel/ptrace.c+150 -760 replies
9/9Cleanup HW Breakpoint registers before kexecarch/x86/kernel/machine_kexec_32.c arch/x86/kernel/machine_kexec_64.c+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC Patch 0/9] Hardware Breakpoint interfaces - v2

Hi All,
Please find the latest set of patches that introduce kernel
interfaces to use Hardware Breakpoint registers and an implementation for x86 (and x86_64) architecture.

The patches have undergone changes to incorporate the suggestions for the previous patchset - including removal of support for instruction breakpoint, and are based off 2.6.28-rc7. The patches have been tested on x86 architecture along with kprobes, however they're posted as RFC owing to the many pending tasks (refer
http://lkml.org/lkml/2008/10/7/127 for details).

Thanks,
K.Prasad