All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] ARM: add support for hw-breakpoints [v2]
@ 2010-03-10 16:01 Will Deacon
  2010-03-10 16:01 ` [RFC PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon
  0 siblings, 1 reply; 20+ messages in thread
From: Will Deacon @ 2010-03-10 16:01 UTC (permalink / raw)
  To: linux-arm-kernel

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 <fweisbec@gmail.com>

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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [RFC PATCH 0/4] ARM: add support for hw-breakpoints
@ 2010-02-02 16:22 Will Deacon
  2010-02-02 16:22 ` [RFC PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon
  0 siblings, 1 reply; 20+ messages in thread
From: Will Deacon @ 2010-02-02 16:22 UTC (permalink / raw)
  To: linux-arm-kernel

Modern ARM cores provide hardware resources for setting breakpoints
and watchpoints from software when in monitor debug mode. When these
are triggered, a debug exception is taken [in the form of a prefetch
or data abort] and a trap can be raised to notify the user that the
event has occurred.

This patch adds an ARM [v6+] backend to the recent HW-Breakpoint framework
in the Kernel. The ptrace interface is extended to support the new features
and has been tested successfully with GDB on 11MPCore and Cortex-A9 platforms.

All comments welcome, particularly those related to:
	- The ptrace interface, where I tried to avoid defining a new struct
	- The debug register accessors, which are rather ugly
	- Discovering the faulting data address when a watchpoint fires

Patch taken against 2.6.33-rc6 with perf [ARM 5900/1] and atomic64 [ARM 5889/1]
support.


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 |  113 ++++++
 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      |  672 ++++++++++++++++++++++++++++++++++
 arch/arm/kernel/ptrace.c             |  158 ++++++++
 arch/arm/mm/fault.c                  |   11 +
 9 files changed, 965 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/include/asm/hw_breakpoint.h
 create mode 100644 arch/arm/kernel/hw_breakpoint.c

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-04-16 15:26 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-10 16:01 [RFC PATCH 0/4] ARM: add support for hw-breakpoints [v2] Will Deacon
2010-03-10 16:01 ` [RFC PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon
2010-03-10 16:01   ` [RFC PATCH 2/4] ARM: hw-breakpoint: add ARM backend for the hw-breakpoint framework Will Deacon
2010-03-10 16:01     ` [RFC PATCH 3/4] ARM: hw-breakpoint: add new ptrace requests for hw-breakpoint interaction Will Deacon
2010-03-10 16:01       ` [RFC PATCH 4/4] ARM: hw-breakpoint: add HAVE_HW_BREAKPOINT to Kconfig Will Deacon
2010-04-13 13:32     ` [RFC PATCH 2/4] ARM: hw-breakpoint: add ARM backend for the hw-breakpoint framework Frederic Weisbecker
2010-04-13 13:32       ` Frederic Weisbecker
2010-04-13 15:52       ` Will Deacon
2010-04-13 15:52         ` Will Deacon
2010-04-13 20:40         ` Frederic Weisbecker
2010-04-13 20:40           ` Frederic Weisbecker
2010-04-14 10:27           ` Will Deacon
2010-04-14 10:27             ` Will Deacon
2010-04-15 23:01             ` Frederic Weisbecker
2010-04-15 23:01               ` Frederic Weisbecker
2010-04-16 14:17               ` Will Deacon
2010-04-16 14:17                 ` Will Deacon
2010-04-16 15:26                 ` Frederic Weisbecker
2010-04-16 15:26                   ` Frederic Weisbecker
  -- strict thread matches above, loose matches on Subject: below --
2010-02-02 16:22 [RFC PATCH 0/4] ARM: add support for hw-breakpoints Will Deacon
2010-02-02 16:22 ` [RFC PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon
2010-02-02 16:22   ` [RFC PATCH 2/4] ARM: hw-breakpoint: add ARM backend for the hw-breakpoint framework Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.