[CRIU] [PATCH 00/19] compel: Start merging standalone tool into, v4

Cyrill Gorcunov gorcunov at openvz.org
Wed Sep 21 13:54:15 PDT 2016


This series passes travis build test. I didn't managed yet with
lot of stuff (library, syscalls plugin and etc, though I've
x86 syscalls plugin but not for other arch) but this series
needed as a ground for future work. Splitting patches more
would cause a way more time spending so please merge as is.
Since we're in -devel time and the series doesn't affect much
criu itself I think it's safe.

Cyrill Gorcunov (11):
  compel: build -- Add @sublevel
  compel: uapi -- Add standalone headers
  compel: Initial commit
  compel: Add plugins header
  compel: plusings -- Add std plugin
  compel: Get rid of old piegen code
  compel: Build host program
  compel: criu -- Use compel-host program
  compel: Add missing symlinks for host elf handling
  compel: test -- Disable compel tests for a while
  compel: handle-elf-32 needed for x86 only

Dmitry Safonov (8):
  compel: remove not needed from uapi
  compel: make -- Add general assembly flags
  compel: Makefile.compel -- Remove second GEN msg
  compel: plugins -- Add prologue.h from compel, drop hand-made
    prologue_init_args
  compel: plugins,std -- Add prologue.S
  compel: plugins -- Add shmem plugin
  compel: plugins,std -- Use sys_recvfrom instead of recv
  compel: plugins -- Add fds plugin

 Makefile                                           |  12 +-
 Makefile.compel                                    |  34 +++
 Makefile.versions                                  |   3 +-
 compel/Makefile                                    |  59 ++---
 compel/arch/aarch64/handle-elf.c                   |  21 --
 compel/arch/aarch64/include/handle-elf.h           |  11 -
 .../aarch64/src/lib/handle-elf-host.c}             |   0
 compel/arch/aarch64/src/lib/handle-elf.c           |  34 +++
 compel/arch/aarch64/src/lib/include/handle-elf.h   |  11 +
 compel/arch/arm/include/handle-elf.h               |  11 -
 compel/arch/arm/src/lib/handle-elf-host.c          |   1 +
 compel/arch/arm/{ => src/lib}/handle-elf.c         |  13 +-
 compel/arch/arm/src/lib/include/handle-elf.h       |  11 +
 compel/arch/ppc64/handle-elf.c                     |  21 --
 compel/arch/ppc64/include/handle-elf.h             |  12 -
 compel/arch/ppc64/src/lib/handle-elf-host.c        |   1 +
 compel/arch/ppc64/src/lib/handle-elf.c             |  34 +++
 compel/arch/ppc64/src/lib/include/handle-elf.h     |  13 +
 compel/arch/x86/handle-elf.c                       |  16 --
 compel/arch/x86/plugins/include/asm/linkage.h      |   1 +
 compel/arch/x86/plugins/include/asm/prologue.h     |  36 +++
 .../arch/x86/plugins/include/asm/syscall-types.h   |  53 +++++
 compel/arch/x86/plugins/std/call32.S               |   1 +
 compel/arch/x86/plugins/std/prologue.S             |  33 +++
 .../plugins/std/syscalls/syscall-common-x86-32.S   |  36 +++
 .../plugins/std/syscalls/syscall-common-x86-64.S   |  21 ++
 compel/arch/x86/plugins/std/syscalls/syscall32.c   |  85 +++++++
 .../arch/x86/plugins/std/syscalls/syscall_32.tbl   |  94 ++++++++
 .../arch/x86/plugins/std/syscalls/syscall_64.tbl   | 105 +++++++++
 compel/arch/x86/scripts/pack.lds.S                 |  30 +++
 compel/arch/x86/src/lib/handle-elf-host.c          |   1 +
 compel/arch/x86/src/lib/handle-elf.c               |  29 +++
 compel/arch/x86/{ => src/lib}/include/handle-elf.h |  18 +-
 compel/include/compiler.h                          |   1 +
 compel/include/elf32-types.h                       |  16 ++
 compel/include/elf64-types.h                       |  16 ++
 compel/include/int.h                               |   1 +
 compel/include/piegen.h                            |  22 +-
 compel/include/shmem.h                             |  10 +
 compel/include/uapi/compel.h                       |  17 ++
 compel/include/uapi/elf32-types.h                  |  20 --
 compel/include/uapi/elf64-types.h                  |  20 --
 compel/include/uapi/piegen-err.h                   |  10 -
 compel/include/uapi/plugins.h                      |  35 +++
 compel/include/uapi/types.h                        |  15 --
 compel/plugins/Makefile                            | 148 ++++++++++++
 compel/plugins/fds/fds.c                           |  26 ++
 compel/plugins/include/std-priv.h                  |   6 +
 compel/plugins/include/uapi/plugin-fds.h           |  27 +++
 compel/plugins/include/uapi/plugin-shmem.h         |  17 ++
 compel/plugins/include/uapi/plugin-std.h           |   7 +
 compel/plugins/include/uapi/std/string.h           |  28 +++
 compel/plugins/include/uapi/std/syscall-types.h    |  57 +++++
 compel/plugins/shmem/shmem.c                       |  38 +++
 compel/plugins/std/std.c                           |  91 +++++++
 compel/plugins/std/string.c                        | 262 +++++++++++++++++++++
 compel/src/lib/handle-elf-32-host.c                |   1 +
 compel/src/lib/handle-elf-32.c                     |   1 +
 compel/src/lib/handle-elf-host.c                   |   1 +
 compel/{ => src/lib}/handle-elf.c                  | 107 +++++----
 compel/src/main-host.c                             |   1 +
 compel/{ => src}/main.c                            |   1 +
 compel/src/shared/fds.c                            | 113 +++++++++
 criu/pie/Makefile                                  |   8 +-
 criu/pie/pie-relocs.c                              |  10 +-
 criu/pie/pie-relocs.h                              |   4 +-
 scripts/build/Dockerfile.tmpl                      |   2 +-
 67 files changed, 1716 insertions(+), 284 deletions(-)
 create mode 100644 Makefile.compel
 delete mode 100644 compel/arch/aarch64/handle-elf.c
 delete mode 100644 compel/arch/aarch64/include/handle-elf.h
 rename compel/{handle-elf-32.c => arch/aarch64/src/lib/handle-elf-host.c} (100%)
 create mode 100644 compel/arch/aarch64/src/lib/handle-elf.c
 create mode 100644 compel/arch/aarch64/src/lib/include/handle-elf.h
 delete mode 100644 compel/arch/arm/include/handle-elf.h
 create mode 120000 compel/arch/arm/src/lib/handle-elf-host.c
 rename compel/arch/arm/{ => src/lib}/handle-elf.c (54%)
 create mode 100644 compel/arch/arm/src/lib/include/handle-elf.h
 delete mode 100644 compel/arch/ppc64/handle-elf.c
 delete mode 100644 compel/arch/ppc64/include/handle-elf.h
 create mode 120000 compel/arch/ppc64/src/lib/handle-elf-host.c
 create mode 100644 compel/arch/ppc64/src/lib/handle-elf.c
 create mode 100644 compel/arch/ppc64/src/lib/include/handle-elf.h
 delete mode 100644 compel/arch/x86/handle-elf.c
 create mode 120000 compel/arch/x86/plugins/include/asm/linkage.h
 create mode 100644 compel/arch/x86/plugins/include/asm/prologue.h
 create mode 100644 compel/arch/x86/plugins/include/asm/syscall-types.h
 create mode 120000 compel/arch/x86/plugins/std/call32.S
 create mode 100644 compel/arch/x86/plugins/std/prologue.S
 create mode 100644 compel/arch/x86/plugins/std/syscalls/syscall-common-x86-32.S
 create mode 100644 compel/arch/x86/plugins/std/syscalls/syscall-common-x86-64.S
 create mode 100644 compel/arch/x86/plugins/std/syscalls/syscall32.c
 create mode 100644 compel/arch/x86/plugins/std/syscalls/syscall_32.tbl
 create mode 100644 compel/arch/x86/plugins/std/syscalls/syscall_64.tbl
 create mode 100644 compel/arch/x86/scripts/pack.lds.S
 create mode 120000 compel/arch/x86/src/lib/handle-elf-host.c
 create mode 100644 compel/arch/x86/src/lib/handle-elf.c
 rename compel/arch/x86/{ => src/lib}/include/handle-elf.h (59%)
 create mode 120000 compel/include/compiler.h
 create mode 100644 compel/include/elf32-types.h
 create mode 100644 compel/include/elf64-types.h
 create mode 120000 compel/include/int.h
 create mode 100644 compel/include/shmem.h
 create mode 100644 compel/include/uapi/compel.h
 delete mode 100644 compel/include/uapi/elf32-types.h
 delete mode 100644 compel/include/uapi/elf64-types.h
 delete mode 100644 compel/include/uapi/piegen-err.h
 create mode 100644 compel/include/uapi/plugins.h
 delete mode 100644 compel/include/uapi/types.h
 create mode 100644 compel/plugins/Makefile
 create mode 100644 compel/plugins/fds/fds.c
 create mode 100644 compel/plugins/include/std-priv.h
 create mode 100644 compel/plugins/include/uapi/plugin-fds.h
 create mode 100644 compel/plugins/include/uapi/plugin-shmem.h
 create mode 100644 compel/plugins/include/uapi/plugin-std.h
 create mode 100644 compel/plugins/include/uapi/std/string.h
 create mode 100644 compel/plugins/include/uapi/std/syscall-types.h
 create mode 100644 compel/plugins/shmem/shmem.c
 create mode 100644 compel/plugins/std/std.c
 create mode 100644 compel/plugins/std/string.c
 create mode 120000 compel/src/lib/handle-elf-32-host.c
 create mode 120000 compel/src/lib/handle-elf-32.c
 create mode 120000 compel/src/lib/handle-elf-host.c
 rename compel/{ => src/lib}/handle-elf.c (87%)
 create mode 120000 compel/src/main-host.c
 rename compel/{ => src}/main.c (99%)
 create mode 100644 compel/src/shared/fds.c

-- 
2.7.4



More information about the CRIU mailing list