[PATCH 14/17] arm: user_regset: Crunch in core dumps

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Roland McGrath
Date: Friday, April 24, 2009 - 5:13 pm

This enables dumping the Crunch state in ELF core dumps.
It gets its own note of the new type NT_ARM_CRUNCH.

Signed-off-by: Roland McGrath <roland@redhat.com>
---
 arch/arm/kernel/ptrace.c |    1 +
 include/linux/elf.h      |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index 78b457c..6ce3deb 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -847,6 +847,7 @@ static const struct user_regset arm_regsets[] = {
 #endif
 #ifdef CONFIG_CRUNCH
 	[REGSET_CRUNCH] = {
+		.core_note_type = NT_ARM_CRUNCH,
 		.n = sizeof(struct crunch_state) / sizeof(int),
 		.size = sizeof(int), .align = sizeof(int),
 		.get = crunch_get, .set = crunch_set
diff --git a/include/linux/elf.h b/include/linux/elf.h
index aa8bae6..30a7b92 100644
--- a/include/linux/elf.h
+++ b/include/linux/elf.h
@@ -362,6 +362,7 @@ typedef struct elf64_shdr {
 #define NT_386_TLS	0x200		/* i386 TLS slots (struct user_desc) */
 #define NT_386_IOPERM	0x201		/* x86 io permission bitmap (1=deny) */
 #define NT_ARM_WMMX	0x300		/* ARM iWMMXt registers */
+#define NT_ARM_CRUNCH	0x301		/* ARM Crunch registers */
 
 
 /* Note header in a PT_NOTE section */
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/17] tracehook &amp; user_regset for ARM, Roland McGrath, (Fri Apr 24, 5:06 pm)
[PATCH 01/17] arm: arch_ptrace clean-up, Roland McGrath, (Fri Apr 24, 5:07 pm)
[PATCH 03/17] arm: tracehook_report_syscall, Roland McGrath, (Fri Apr 24, 5:08 pm)
[PATCH 04/17] arm: tracehook_signal_handler, Roland McGrath, (Fri Apr 24, 5:09 pm)
[PATCH 05/17] arm: TIF_NOTIFY_RESUME, Roland McGrath, (Fri Apr 24, 5:09 pm)
[PATCH 06/17] arm: user_regset: general regs, Roland McGrath, (Fri Apr 24, 5:10 pm)
[PATCH 07/17] arm: user_regset: FPU regs, Roland McGrath, (Fri Apr 24, 5:10 pm)
[PATCH 08/17] arm: CORE_DUMP_USE_REGSET, Roland McGrath, (Fri Apr 24, 5:11 pm)
[PATCH 09/17] arm: user_regset: VFP regs, Roland McGrath, (Fri Apr 24, 5:11 pm)
[PATCH 10/17] arm: user_regset: VFP in core dumps, Roland McGrath, (Fri Apr 24, 5:12 pm)
[PATCH 11/17] arm: user_regset: iWMMXt regs, Roland McGrath, (Fri Apr 24, 5:12 pm)
[PATCH 12/17] arm: user_regset: iWMMXt in core dumps, Roland McGrath, (Fri Apr 24, 5:12 pm)
[PATCH 13/17] arm: user_regset: Crunch regs, Roland McGrath, (Fri Apr 24, 5:13 pm)
[PATCH 14/17] arm: user_regset: Crunch in core dumps, Roland McGrath, (Fri Apr 24, 5:13 pm)
[PATCH 16/17] arm: asm/syscall.h (unfinished), Roland McGrath, (Fri Apr 24, 5:15 pm)
[PATCH 17/17] arm: HAVE_ARCH_TRACEHOOK, Roland McGrath, (Fri Apr 24, 5:15 pm)
Re: [PATCH 12/17] arm: user_regset: iWMMXt in core dumps, Roland McGrath, (Mon Apr 27, 7:53 pm)
Re: [PATCH 0/17] tracehook &amp; user_regset for ARM, Christoph Hellwig, (Sat Jun 6, 7:42 am)
Re: [PATCH 01/17] arm: arch_ptrace clean-up, Russell King, (Fri Jun 19, 2:13 am)
Re: [PATCH 16/17] arm: asm/syscall.h (unfinished), Russell King, (Fri Jun 19, 2:31 am)
Re: [PATCH 01/17] arm: arch_ptrace clean-up, Roland McGrath, (Tue Jun 23, 11:55 pm)
Re: [PATCH 16/17] arm: asm/syscall.h (unfinished), Roland McGrath, (Wed Jun 24, 1:56 am)