[CRIU] [PATCH v4 00/13] epoll: Add support for duped targets

Cyrill Gorcunov gorcunov at gmail.com
Mon Jul 2 23:13:20 MSK 2018


We need to support a case where file has been added into
epoll, then duped into some other number, and finally
the former one is closed. So that epoll fdinfo will
print no longer existing fd number (in this series
we will find which new file is matching the target).

v2:
 - add support for multiple dup'ed targets
 - address the test for new features

v4:
 - fix target files descriptors retrieval
 - new test by @avagin

Andrei Vagin (1):
  zdtm/static: add a test to check epoll file descriptors

Cyrill Gorcunov (12):
  kcmp: Cleanup sources
  kcmp: Beautify kcmp-ids.h
  kcmp: Drop empty line at EOF
  kcmp: Add epoll definitions
  epoll: kdat -- Check if we have KCMP_EPOLL_TFD support
  epoll: Pass drained fds to dump_one_file
  epoll: Use real file transferred for target fds check
  epoll: Use kcmp to find proper target file
  epoll: Add support for multiple duped fds
  epoll: Show tfd in decimal form
  epoll: Print efd id when showing targets
  epoll: Align members in assignments

 criu/eventpoll.c          | 169 ++++++++++++++++++++++++++++++++++++++++------
 criu/files.c              |   8 ++-
 criu/include/files.h      |   2 +
 criu/include/kcmp-ids.h   |  29 ++++----
 criu/include/kcmp.h       |  10 +++
 criu/include/kerndat.h    |   1 +
 criu/kcmp-ids.c           |  14 ++--
 criu/kerndat.c            |  48 +++++++++++++
 test/zdtm/static/Makefile |   1 +
 test/zdtm/static/epoll.c  | 130 +++++++++++++++++++++++++++++++++++
 10 files changed, 372 insertions(+), 40 deletions(-)
 create mode 100644 test/zdtm/static/epoll.c

-- 
2.14.4



More information about the CRIU mailing list