linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ARM: add support for hw-breakpoints [v4]
@ 2010-07-07 16:22 Will Deacon
  2010-07-07 16:22 ` [PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Will Deacon @ 2010-07-07 16:22 UTC (permalink / raw)
  To: linux-arm-kernel

This is version 4 of the patches originally posted at:

v1.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-February/009084.html
v2.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-March/011170.html
v3.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-June/017680.html

Changes from v3 include:
	- Based on 2.6.35-rc3
	- Support for unaligned addresses
	- Numerous bug fixes
	- Tested with GDB, for which the testsuite passes

GDB patches have been posted here:

http://sourceware.org/ml/gdb-patches/2010-07/msg00110.html

I'd like to get these patches applied now that I'm confident that
they function correctly, so please give them a go.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: S. Karthikeyan <informkarthik@gmail.com>
Cc: Matthew Gretton-Dann <matthew.gretton-dann@arm.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 |  117 ++++++
 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      |  760 ++++++++++++++++++++++++++++++++++
 arch/arm/kernel/ptrace.c             |  223 ++++++++++
 arch/arm/mm/fault.c                  |   11 +
 9 files changed, 1122 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] 13+ messages in thread
* [PATCH 0/4] ARM: add support for hw-breakpoints [v6]
@ 2010-08-23 15:54 Will Deacon
  2010-08-23 15:54 ` [PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon
  0 siblings, 1 reply; 13+ messages in thread
From: Will Deacon @ 2010-08-23 15:54 UTC (permalink / raw)
  To: linux-arm-kernel

This is version 6 of the patches originally posted at:

v1.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-February/009084.html
v2.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-March/011170.html
v3.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-June/017680.html
v4.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-July/019882.html
v5.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-August/022882.html

Changes from v5 include:
	- Based on v2.6.36-rc2
	- ptrace breakpoints are now flushed before the thread state is zeroed
	- ptrace breakpoint pointers are zeroed in copy_thread
	- Debug registers are now zeroed on all cores during boot
	- Userspace breakpoint and watchpoint single-stepping is supported on
	  v7 processors. This means the perf tool can be used to monitor
	  function calls and variable accesses.

As with v5, these patches have been shown to work with GDB using the patches
posted here:

http://sourceware.org/ml/gdb-patches/2010-07/msg00110.html

Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: S. Karthikeyan <informkarthik@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 |  132 ++++++
 arch/arm/include/asm/processor.h     |    4 +
 arch/arm/include/asm/ptrace.h        |    2 +
 arch/arm/include/asm/system.h        |    4 +
 arch/arm/kernel/Makefile             |    1 +
 arch/arm/kernel/hw_breakpoint.c      |  849 ++++++++++++++++++++++++++++++++++
 arch/arm/kernel/process.c            |    5 +
 arch/arm/kernel/ptrace.c             |  239 ++++++++++
 arch/arm/mm/fault.c                  |   13 +
 10 files changed, 1250 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] 13+ messages in thread
* [PATCH 0/4] ARM: add support for hw-breakpoints [v5]
@ 2010-08-10 13:10 Will Deacon
  2010-08-10 13:10 ` [PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon
  0 siblings, 1 reply; 13+ messages in thread
From: Will Deacon @ 2010-08-10 13:10 UTC (permalink / raw)
  To: linux-arm-kernel

This is version 5 of the patches originally posted at:

v1.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-February/009084.html
v2.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-March/011170.html
v3.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-June/017680.html
v4.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-July/019882.html

Changes from v4 include:
	- isb() after writing to breakpoint registers to ensure that
	  the update takes place.
	- Rebased onto 2.6.35

As with v4, these patches have been shown to work with GDB using the patches
posted here:

http://sourceware.org/ml/gdb-patches/2010-07/msg00110.html

Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: S. Karthikeyan <informkarthik@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 |  117 ++++++
 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      |  761 ++++++++++++++++++++++++++++++++++
 arch/arm/kernel/ptrace.c             |  223 ++++++++++
 arch/arm/mm/fault.c                  |   11 +
 9 files changed, 1123 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] 13+ messages in thread
* [RFC PATCH 0/4] ARM: add support for hw-breakpoints [v3]
@ 2010-06-10 14:59 Will Deacon
  2010-06-10 14:59 ` [PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon
  0 siblings, 1 reply; 13+ messages in thread
From: Will Deacon @ 2010-06-10 14:59 UTC (permalink / raw)
  To: linux-arm-kernel

This is version 3 of the RFC patches originally posted at:

v1.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-February/009084.html
v2.) http://lists.infradead.org/pipermail/linux-arm-kernel/2010-March/011170.html

Changes from v2 include:
	- Based on 2.6.35-rc2
	- Updated to use new hw-breakpoint API features
	- Addressed some comments from Frederic on LKML
	- Complete redesign of the ptrace interface so that it
	  follows the ARM ARM (v7) register structure more closely.

Unfortunately, I've only managed to compile-test this and check that the
resulting image boots. The main reasons for posting are (a) to support
current GDB development and (b) to attract comments on the code.

All comments welcome.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: S. Karthikeyan <informkarthik@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 |  117 ++++++
 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      |  734 ++++++++++++++++++++++++++++++++++
 arch/arm/kernel/ptrace.c             |  196 +++++++++
 arch/arm/mm/fault.c                  |   11 +
 9 files changed, 1069 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] 13+ messages in thread

end of thread, other threads:[~2011-02-16 13:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-07 16:22 [PATCH 0/4] ARM: add support for hw-breakpoints [v4] Will Deacon
2010-07-07 16:22 ` [PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon
2010-07-07 16:22   ` [PATCH 2/4] ARM: hw-breakpoint: add ARM backend for the hw-breakpoint framework Will Deacon
2010-07-07 16:22     ` [PATCH 3/4] ARM: hw-breakpoint: add new ptrace requests for hw-breakpoint interaction Will Deacon
2010-07-07 16:23       ` [PATCH 4/4] ARM: hw-breakpoint: add HAVE_HW_BREAKPOINT to Kconfig Will Deacon
2010-07-07 16:32 ` [PATCH 0/4] ARM: add support for hw-breakpoints [v4] Will Deacon
     [not found] ` <-857909442890734186@unknownmsgid>
2011-02-16 11:29   ` karthikeyan.s
2011-02-16 11:59     ` Will Deacon
2011-02-16 13:03       ` Ulrich Weigand
  -- strict thread matches above, loose matches on Subject: below --
2010-08-23 15:54 [PATCH 0/4] ARM: add support for hw-breakpoints [v6] Will Deacon
2010-08-23 15:54 ` [PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon
2010-09-02 10:55   ` Russell King - ARM Linux
2010-08-10 13:10 [PATCH 0/4] ARM: add support for hw-breakpoints [v5] Will Deacon
2010-08-10 13:10 ` [PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon
2010-06-10 14:59 [RFC PATCH 0/4] ARM: add support for hw-breakpoints [v3] Will Deacon
2010-06-10 14:59 ` [PATCH 1/4] ARM: hw-breakpoint: add mechanism for hooking into prefetch aborts Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).