[CRIU] [PATCH 0/2] crit core-dump feature, v2

Ruslan Kuprieiev kupruser at gmail.com
Tue Apr 28 13:45:48 PDT 2015


This set itroduces a new CRIT feature called "core-dump". The name
is pretty much self-explanatory, it allows generating core dumps
from criu images. Core dumps are readable and usable by gdb.
The structure is something in the middle of kernel-generated
and gdb-generated core dumps.

This is a first iteration of core-dump patch series. It introduces
ability to generate gdb-operatable core dump only for x86_64 machine.
To support other architectures there will be a set to introduce proper
structures for notes section of the core dump. It is also worth noting,
that we still leave some notes(SIGINFO primarily) not fullfilled, as
I still need to figure out what to put in there in our case, where no
signal is involved in triggering core dump generation and other
caveats like zeroed vvar(we have problems with it withing CRIU itself
as well as gdb has some difficalties with it) and vsyscall vmas.
One can already use produced core dump with gdb, there is also
a quick simple demo https://asciinema.org/a/18936 .

Ruslan Kuprieiev (2):
  crit: add core-dump feature, v3
  test: crit: test core dump, v2

 crit                       |  18 +-
 pycriu/images/__init__.py  |   1 +
 pycriu/images/core_dump.py | 822 +++++++++++++++++++++++++++++++++++++++++++++
 pycriu/images/elf.py       | 526 +++++++++++++++++++++++++++++
 test/crit/.gitignore       |   2 +
 test/crit/Makefile         |  10 +-
 test/crit/loop.c           |  37 ++
 test/crit/loop.sh          |   4 -
 test/crit/test.sh          |  66 +++-
 9 files changed, 1462 insertions(+), 24 deletions(-)
 create mode 100644 pycriu/images/core_dump.py
 create mode 100644 pycriu/images/elf.py
 create mode 100644 test/crit/loop.c
 delete mode 100755 test/crit/loop.sh

-- 
1.9.1



More information about the CRIU mailing list