[CRIU] [PATCH 0/4] [RFC] compel uapi cleanups

Kir Kolyshkin kir at openvz.org
Wed Feb 8 06:36:09 PST 2017


This is some work that I started to clean up compel UAPI.

Frankly, it does not look very good to me, and I am not
even sure if I'm going in the right direction and how to
make it better.

The reason for this RFC is to gather team opinions.

Please speak up.

Kir Kolyshkin (4):
  compel: split sanitize ptrace.h
  compel: add compel_ prefix to cpu_has_feature
  compel/include/uapi/infect.h: no circular inclusion
  compel: add prefix to TASK_ defines

 compel/arch/aarch64/src/lib/cpu.c |  2 +-
 compel/arch/arm/src/lib/cpu.c     |  2 +-
 compel/arch/ppc64/src/lib/cpu.c   |  2 +-
 compel/arch/x86/src/lib/cpu.c     |  2 +-
 compel/arch/x86/src/lib/infect.c  | 12 +++------
 compel/include/ptrace.h           | 17 +++++++++++++
 compel/include/uapi/cpu.h         |  2 +-
 compel/include/uapi/infect.h      | 26 +++++++++++--------
 compel/include/uapi/ptrace.h      | 53 +++++++++++++++------------------------
 compel/src/lib/infect.c           | 46 ++++++++++-----------------------
 compel/src/lib/ptrace.c           |  5 ++--
 criu/arch/x86/cpu.c               | 12 ++++-----
 criu/arch/x86/crtools.c           | 11 ++++----
 criu/cr-dump.c                    | 27 ++++++++++----------
 criu/cr-restore.c                 | 36 +++++++++++++-------------
 criu/cr-service.c                 |  2 +-
 criu/crtools.c                    | 10 ++++----
 criu/files-reg.c                  |  8 +++---
 criu/image.c                      |  2 +-
 criu/include/pid.h                | 10 +-------
 criu/include/pstree.h             |  3 ++-
 criu/include/ptrace-compat.h      |  4 +--
 criu/parasite-syscall.c           |  1 -
 criu/proc_parse.c                 |  2 +-
 criu/pstree.c                     | 22 ++++++++--------
 criu/seccomp.c                    |  2 +-
 criu/seize.c                      | 30 +++++++++++-----------
 criu/tty.c                        |  2 +-
 28 files changed, 162 insertions(+), 191 deletions(-)
 create mode 100644 compel/include/ptrace.h

-- 
2.9.3



More information about the CRIU mailing list