[CRIU] [PATCH 0/4] criu2text
Ruslan Kuprieiev
kupruser at gmail.com
Thu Sep 11 16:50:41 PDT 2014
criu2text is a program written in python to convert criu images
to/from human readable format. From .img file it produces directory
with files: magic, 0, 1... File named magic has only criu image magic
in hex (0x1234) format. Files 0,1... are protobuf messages in protobuf
text format. Number of files N depends on number of pb entrys stored
in image file.
Usage:
criu2text to-text IMG_IN [WORK_DIR]
criu2text to-img TEXT_DIR_IN [WORK_DIR]
Here are some examples of converting core-1234.img to text and back:
1) $ criu2text to-text core-1234.img text_imgs_dir
$ ls text_imgs_dir
core-1234
$ ls text_imgs_dir/core-1234
0
magic
2) $ criu2text to-img text_imgs_dir/core-1234 imgs_dir
$ ls imgs_dir
core-1234.img
Ruslan Kuprieiev (4):
protobuf: move enum nd_type inside net_device_entry message
tools: add criu2text
criu2text: add test
criu2text: add README
net.c | 22 +++---
protobuf/netdev.proto | 26 +++----
tools/criu2text/.gitignore | 4 ++
tools/criu2text/Makefile | 20 ++++++
tools/criu2text/README | 35 ++++++++++
tools/criu2text/criu2text.py | 148 ++++++++++++++++++++++++++++++++++++++++
tools/criu2text/images.py | 112 ++++++++++++++++++++++++++++++
tools/criu2text/magic-gen.py | 44 ++++++++++++
tools/criu2text/test/.gitignore | 3 +
tools/criu2text/test/Makefile | 14 ++++
tools/criu2text/test/loop.sh | 4 ++
tools/criu2text/test/test.sh | 25 +++++++
12 files changed, 433 insertions(+), 24 deletions(-)
create mode 100644 tools/criu2text/.gitignore
create mode 100644 tools/criu2text/Makefile
create mode 100644 tools/criu2text/README
create mode 100755 tools/criu2text/criu2text.py
create mode 100644 tools/criu2text/images.py
create mode 100644 tools/criu2text/magic-gen.py
create mode 100644 tools/criu2text/test/.gitignore
create mode 100644 tools/criu2text/test/Makefile
create mode 100755 tools/criu2text/test/loop.sh
create mode 100644 tools/criu2text/test/test.sh
--
1.9.3
More information about the CRIU
mailing list