epoll: Start using new kcmp operation to find targets

Submitted by Cyrill Gorcunov on Feb. 28, 2017, 3:05 p.m.

Details

Reviewer None
Submitted Feb. 28, 2017, 3:05 p.m.
Last Updated March 1, 2017, 3:42 a.m.
Revision 1

Cover Letter

Note:

 - the kernel patches are not yet merged and v2 is upcoming, still the
   series work fine with old kernels

 - on inaccessible targers we simply drop them for now, proper restore
   need more efforts and will be done later

Cyrill Gorcunov (10):
  kcmp: Cleanup sources
  kcmp: Beautify kcmp-ids.h
  kcmp: Drop empty line at EOF
  files: Move make_gen_id into separate helper
  proc-parse: epoll -- Add primary hash generation
  kcmp: Add epoll definitions
  kcmp: files -- Add fd_kid_epoll_lookup helper
  epoll: Use kcmp for targets if available
  epoll: Ignore inaccessible targets
  test: eventfs00 -- Extend to test duped fd

 criu/cr-dump.c               |   9 +++
 criu/eventpoll.c             | 168 ++++++++++++++++++++++++++++++++++++-------
 criu/file-ids.c              |  12 ++++
 criu/files.c                 |  17 +----
 criu/include/eventpoll.h     |   2 +
 criu/include/fdinfo.h        |   3 +
 criu/include/file-ids.h      |  20 +++++-
 criu/include/kcmp-ids.h      |  33 +++++----
 criu/include/kcmp.h          |  10 +++
 criu/kcmp-ids.c              |  63 ++++++++++++++--
 criu/proc_parse.c            |  24 +++++--
 test/zdtm/static/eventfs00.c |  20 ++++--
 12 files changed, 316 insertions(+), 65 deletions(-)
  

Revisions