[CRIU] [PATCH 00/20] compel tool

Kir Kolyshkin kir at openvz.org
Thu Dec 8 01:44:13 PST 2016


First partof this patchset (patches 1-8) are small fixes and
improvements to compel command line options handling, as well
as --help improvements. It was send to the list earlier and
reviewed by Cyrill Gorcunov.

Second part is somewhat less trivial, it tries to simplify
"compel hgen" usage by removing many CLI options, and modifying
CRIU accordingly to use it.

It also allows using "compel hgen" for ARM arches, and again
modifies CRIU accordingly (it was not using compel hgen for ARM).

Kir Kolyshkin (20):
  compel: remove unneeded argc check
  compel: separate usage() to a function
  compel hgen: option -o is required
  compel: tell user what's wrong with usage
  compel: error out on unknown opt or missing arg
  compel --help: fix
  compel --help: don't hardcode arch list
  compel --help: describe required parameters
  __handle_elf: rm duplicated code
  compel handle-elf.c: better align generated output
  compel: simplify usage wrt ids
  compel: rm COMPEL_H_PARASITE_* macros
  compel handle_elf(): use continue
  compel/test/infect/Makefile: don't add .h to sources
  compel hgen: drop -u option
  compel hgen: use for ARM, kill gen-offsets.sh
  compel handle_elf(): fix strings sect bounds check
  compel: print errors to stderr
  compel hgen: --prefix is required
  compel --help: complete

 Makefile                         |  10 ---
 Makefile.config                  |   4 -
 compel/Makefile                  |   6 ++
 compel/include/piegen.h          |   6 +-
 compel/include/uapi/handle-elf.h |   8 --
 compel/src/lib/handle-elf.c      |  98 ++++++++++++++--------
 compel/src/main.c                | 173 +++++++++++++++++++++++----------------
 compel/test/infect/Makefile      |   8 +-
 compel/test/infect/spy.c         |  16 +---
 criu/cr-restore.c                |   4 +-
 criu/include/restorer.h          |   5 +-
 criu/parasite-syscall.c          |  33 +-------
 criu/pie/Makefile                |  43 +---------
 criu/pie/pie-relocs.h            |  14 ----
 scripts/gen-offsets.sh           |  43 ----------
 15 files changed, 181 insertions(+), 290 deletions(-)
 delete mode 100644 scripts/gen-offsets.sh

-- 
2.7.4



More information about the CRIU mailing list