[CRIU] [PATCH 0/3] no more link crtools against the syscall lib

Laurent Dufour ldufour at linux.vnet.ibm.com
Wed Feb 3 08:13:45 PST 2016


This series is removing the need for crtools to be linked with the
builtin syscall library.

This syscall library mimics the syscall part of the C library and is
required by the parasite code which can't rely on the C library.

The crtools binary is linked with the C library and thus don't need
the builtin syscall lib. This should ease the work to split criu in
multiple independent parts as expected in criu 2.

I did tests on the following architectures:
 - x86_64, build and tests are successful
 - ppc64le, build and tests are successful
 - arm, build success but tests are failing as with CRIU 1.8
 - aarch64, build success but tests are failing as with CRIU 1.8

Laurent Dufour (3):
  build: conditional define of struct prctl_mm_map
  namespace: move definition of CLONE_SUBNS
  crtools: no more linked with builtin syscall

 Makefile                     |  2 +-
 arch/aarch64/crtools.c       |  1 -
 arch/arm/crtools.c           |  1 -
 arch/ppc64/crtools.c         |  2 +-
 arch/ppc64/syscalls-ppc64.sh |  3 +++
 arch/x86/Makefile            |  3 +++
 arch/x86/crtools.c           |  1 -
 arch/x86/prlimit.c           |  1 -
 cr-check.c                   | 30 +++++++++++++++---------------
 cr-dump.c                    |  5 ++---
 cr-restore.c                 |  5 ++---
 cr-service.c                 |  1 +
 crtools.c                    |  2 +-
 file-ids.c                   |  1 -
 files-reg.c                  |  1 +
 fsnotify.c                   | 13 ++++++-------
 include/lock.h               | 14 +++++++++++++-
 include/namespaces.h         |  3 +++
 include/prctl.h              |  2 +-
 include/sk-inet.h            |  5 ++++-
 include/sockets.h            |  1 +
 include/syscall-types.h      |  3 ---
 ipc_ns.c                     |  2 +-
 kcmp-ids.c                   | 11 ++++++-----
 kerndat.c                    |  8 ++++----
 mount.c                      |  1 +
 namespaces.c                 |  2 +-
 net.c                        |  1 -
 parasite-syscall.c           |  1 -
 pie/util-vdso.c              |  1 -
 pie/util.c                   | 18 ++++++++++++------
 pstree.c                     |  3 +++
 shmem.c                      |  2 +-
 sk-packet.c                  |  1 +
 sk-tcp.c                     |  2 ++
 sockets.c                    |  1 +
 sysctl.c                     |  1 +
 tty.c                        |  1 -
 tun.c                        |  1 +
 util.c                       |  1 +
 uts_ns.c                     |  2 +-
 41 files changed, 95 insertions(+), 65 deletions(-)

-- 
1.9.1



More information about the CRIU mailing list