[minicoredumper] [PATCH 0/2] Rework get_stack_pointer for linux above 4.8

Marco Felsch Marco.Felsch at preh.de
Wed Aug 2 17:29:59 CEST 2017


The stack pointer isn't reported to the proc-fs since linux kernel 4.9.
It turned out [0] that we need to parse the kernel coredump ELF-header to
obtain the stack pointers for each thread. This has the disadvantage of
architecture depency. Therefore we keep the proc-fs methode for kernel
below 4.9 and inform the user if he use a kernel > 4.9 and use a
unsupported architecture.

This patch series is an approach to parse the stack pointer from the
ELF-header. Currently only the arm64 is supported because of my target arch.
I've tested it with a linux kernel 4.9 and it works as it should.

[0] http://lists.linutronix.de/pipermail/minicoredumper/2017-July/000044.html

Marco Felsch (2):
  minicoredumper: add new task_info struct
  minicoredumper: add new get_stack_pointer function

 configure.ac                      |  14 ++-
 src/minicoredumper/corestripper.c | 214 +++++++++++++++++++++++++++++++++++++-
 src/minicoredumper/corestripper.h |   7 ++
 3 files changed, 232 insertions(+), 3 deletions(-)

-- 
2.11.0




More information about the minicoredumper mailing list