[CRIU] [PATCH 00/23] clang support

Kir Kolyshkin kir at openvz.org
Tue Oct 11 18:46:38 PDT 2016


Last week I tried to compile CRIU with clang (only for x86_64 for now
to limit the scope; it's already not too small).

The motivation was mostly pure interest to see how CRIU is gcc-dependent.
Also, clang sometimes catches more bugs in the code than gcc which we
can benefit from.

This series is what I ended up with. Tests are OK on my machine as well
as on travis-ci (https://travis-ci.org/kolyshkin/criu/builds/166927121).

Kir Kolyshkin (23):
  criu/filesystems.c: refactor binfmt_misc_restore_bme
  criu/parasite-syscall.c: init a var
  criu/mount.c: rm unused function
  pie: provide own memcpy for x86
  Makefiles: move -Wa,--noexecstack out of CFLAGS
  zdtm: compile fix for clang
  zombie00 test: fix for clang
  fpu00 test: fix for clang
  inotify_system tests: fix for clang
  vdso01 test: fix for clang
  groups.c test: fix for clang
  rtc.c test: fix for clang
  apparmor test: fix for clang
  cmdlinenv00 test: fix for clang
  maps007 test: fix for clang
  restorer.c: rm unneded struct init
  parasite.c: rm unneeded init
  scripts/travis/Makefile: mark phony target as such
  CI: move travis' after_success to a script
  Makefile: don't compile with -O0 if GCOV=1
  CI: move GCOV flag to travis.yml
  zdtm/grow_map: fix test failure for clang
  CI: add clang build for travis-ci

 .travis.yml                             | 18 ++++++++----------
 Makefile                                |  1 -
 compel/plugins/Makefile                 |  3 ++-
 criu/arch/x86/include/asm/string.h      | 19 ++++++++-----------
 criu/arch/x86/memcpy.S                  | 30 ++++++++++++++++++++++++++++++
 criu/filesystems.c                      | 30 ++++++++++++++++++++----------
 criu/mount.c                            | 19 -------------------
 criu/parasite-syscall.c                 |  2 +-
 criu/pie/Makefile.library               |  4 +++-
 criu/pie/parasite.c                     |  2 +-
 criu/pie/restorer.c                     |  2 +-
 lib/c/Makefile                          |  3 ++-
 scripts/travis/Makefile                 |  6 ++++++
 scripts/travis/travis-after_success     | 10 ++++++++++
 scripts/travis/travis-tests             | 10 +++++++---
 test/zdtm/lib/zdtmtst.h                 |  3 ++-
 test/zdtm/static/apparmor.c             |  2 +-
 test/zdtm/static/cmdlinenv00.c          |  2 +-
 test/zdtm/static/fpu00.c                | 10 +++++-----
 test/zdtm/static/groups.c               |  3 ++-
 test/zdtm/static/grow_map.c             | 11 +++++++----
 test/zdtm/static/inotify_system.c       |  6 +++---
 test/zdtm/static/inotify_system_nodel.c |  6 +++---
 test/zdtm/static/rtc.c                  |  3 ++-
 test/zdtm/static/vdso01.c               |  6 +++---
 test/zdtm/static/zombie00.c             |  2 +-
 test/zdtm/transition/maps007.c          |  2 +-
 27 files changed, 130 insertions(+), 85 deletions(-)
 create mode 100644 criu/arch/x86/memcpy.S
 create mode 100755 scripts/travis/travis-after_success

-- 
2.7.4



More information about the CRIU mailing list