linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: ptrace: migrate to regsets and enable VFP coredumps
@ 2011-04-01 16:21 Dave Martin
  2011-04-01 16:21 ` [PATCH 1/2] ARM: ELF: Define new core note type for VFP registers Dave Martin
  2011-04-01 16:21 ` [PATCH 2/2] ARM: ptrace: Migrate to regsets framework Dave Martin
  0 siblings, 2 replies; 6+ messages in thread
From: Dave Martin @ 2011-04-01 16:21 UTC (permalink / raw)
  To: linux-arm-kernel

The VFP register state is currently missing from coredumps.

Rather than adding extra arch-specific code to handle this,
migrating to use the regsets framework and implementing a regset
for the VFP registers allows this state to be dumped automatically,
as well as simplifying some aspects of the ptrace implementation.

Dumping of other extension state could also be built
straightforwardly on the same framework, though I don't attempt
to implement that here.

In principle, we should be able to enable the generic
PTRAGE_GETREGSET/PTRAGE_SETREGSET calls too, but strangely
these are #ifdef'd on CONFIG_HAVE_ARCH_TRACEHOOK (which we don't
currently have).  CORE_DUMP_USE_REGSET might be more appropriate.
I'll raise this question separately on lkml.

Dave Martin (2):
  ARM: ELF: Define new core note type for VFP registers
  ARM: ptrace: Migrate to regsets framework

 arch/arm/include/asm/elf.h |    3 +
 arch/arm/kernel/ptrace.c   |  348 ++++++++++++++++++++++++++++++--------------
 2 files changed, 242 insertions(+), 109 deletions(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH 1/2] ARM: ELF: Define new core note type for VFP registers
@ 2011-04-04  9:24 Dave Martin
  2011-04-04  9:24 ` [PATCH 2/2] ARM: ptrace: Migrate to regsets framework Dave Martin
  0 siblings, 1 reply; 6+ messages in thread
From: Dave Martin @ 2011-04-04  9:24 UTC (permalink / raw)
  To: linux-arm-kernel

The VFP registers are not currently included in coredumps,
and there's no existing note type where they can sensibly be
included, so this patch defines a dedicated note type for them.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Will Deacon <Will.Deacon@arm.com>
---
 include/linux/elf.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/elf.h b/include/linux/elf.h
index 4d60801..110821c 100644
--- a/include/linux/elf.h
+++ b/include/linux/elf.h
@@ -395,6 +395,7 @@ typedef struct elf64_shdr {
 #define NT_S390_CTRS	0x304		/* s390 control registers */
 #define NT_S390_PREFIX	0x305		/* s390 prefix register */
 #define NT_S390_LAST_BREAK	0x306	/* s390 breaking event address */
+#define NT_ARM_VFP	0x400		/* ARM VFP/NEON registers */
 
 
 /* Note header in a PT_NOTE section */
-- 
1.7.1

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

end of thread, other threads:[~2011-04-04  9:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01 16:21 [PATCH 0/2] ARM: ptrace: migrate to regsets and enable VFP coredumps Dave Martin
2011-04-01 16:21 ` [PATCH 1/2] ARM: ELF: Define new core note type for VFP registers Dave Martin
2011-04-01 17:02   ` Ulrich Weigand
2011-04-01 17:04     ` Dave Martin
2011-04-01 16:21 ` [PATCH 2/2] ARM: ptrace: Migrate to regsets framework Dave Martin
  -- strict thread matches above, loose matches on Subject: below --
2011-04-04  9:24 [PATCH 1/2] ARM: ELF: Define new core note type for VFP registers Dave Martin
2011-04-04  9:24 ` [PATCH 2/2] ARM: ptrace: Migrate to regsets framework Dave Martin

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).