Skip to content

RFC ARM: add support for hw-breakpoints [v2]

Will Deacon linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ARM: hw-breakpoint: add mechanism for hooking into prefetch abortsarch/arm/include/asm/system.h arch/arm/mm/fault.c+14 -00 replies
2/4ARM: hw-breakpoint: add ARM backend for the hw-breakpoint frameworkarch/arm/include/asm/hw_breakpoint.h arch/arm/kernel/hw_breakpoint.c+829 -07 replies
3/4ARM: hw-breakpoint: add new ptrace requests for hw-breakpoint interactionarch/arm/include/asm/processor.h arch/arm/include/asm/ptrace.h arch/arm/kernel/ptrace.c+164 -00 replies
4/4ARM: hw-breakpoint: add HAVE_HW_BREAKPOINT to Kconfigarch/arm/Kconfig arch/arm/kernel/Makefile+2 -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/4] ARM: add support for hw-breakpoints [v2]

This is version 2 of the RFC originally posted here:

http://lists.infradead.org/pipermail/linux-arm-kernel/2010-February/009084.html

Changes from the previous version include:

- Based on 2.6.33
- Removal of self-modifying code to access the debug registers
- Control and value registers now reset during init
- Removal of .name field from struct arch_hw_breakpoint and associated symbol resolution [following comments made about patches for PPC].

All comments welcome [the last submission didn't attract any!].

Cc Frederic Weisbecker <[email protected]>

Will Deacon (4):
ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts
ARM: hw-breakpoint: add ARM backend for the hw-breakpoint framework
ARM: hw-breakpoint: add new ptrace requests for hw-breakpoint
interaction
ARM: hw-breakpoint: add HAVE_HW_BREAKPOINT to Kconfig

 arch/arm/Kconfig                     |    1 +
 arch/arm/include/asm/hw_breakpoint.h |  118 ++++++
 arch/arm/include/asm/processor.h     |    4 +
 arch/arm/include/asm/ptrace.h        |    2 +
 arch/arm/include/asm/system.h        |    3 +
 arch/arm/kernel/Makefile             |    1 +
 arch/arm/kernel/hw_breakpoint.c      |  711 ++++++++++++++++++++++++++++++++++
 arch/arm/kernel/ptrace.c             |  158 ++++++++
 arch/arm/mm/fault.c                  |   11 +
 9 files changed, 1009 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/include/asm/hw_breakpoint.h
 create mode 100644 arch/arm/kernel/hw_breakpoint.c