[PATCH 0/6] x86/dumpstack: print entry regs when dumping the stack

From: Josh Poimboeuf
Date: Thu Oct 20 2016 - 12:35:08 EST


Here's the next round of dumpstack-related patches. This adds a
mechanism to identify any pt_regs on the stack so they can be printed in
the stack dump.

Josh Poimboeuf (6):
x86/entry/unwind: create stack frames for saved interrupt registers
x86/unwind: create stack frames for saved syscall registers
x86/dumpstack: print stack identifier on its own line
x86/dumpstack: print any pt_regs found on the stack
x86/dumpstack: fix duplicate RIP address display in __show_regs()
x86/dumpstack: print orig_ax in __show_regs()

arch/x86/entry/calling.h | 20 ++++++++
arch/x86/entry/entry_32.S | 33 ++++++++++--
arch/x86/entry/entry_64.S | 10 ++--
arch/x86/include/asm/unwind.h | 16 +++++-
arch/x86/kernel/dumpstack.c | 24 +++++++--
arch/x86/kernel/process_64.c | 11 ++--
arch/x86/kernel/unwind_frame.c | 111 ++++++++++++++++++++++++++++++++++++++---
7 files changed, 201 insertions(+), 24 deletions(-)

--
2.7.4