[CRIU] [PATCH 0/3] time: Save and export clock delta between c/r cycles

Cyrill Gorcunov gorcunov at gmail.com
Tue Feb 2 07:53:44 PST 2016


The primary idea is to inform other tools which uses criu
about time difference between checkpoint and restore stages.
Main target is libvzctl of course together with our PCS7
kernel (because there is no time-namepsace in vanilla
kernel yet). We will export time delta into environment
variable and then use scripts to adjust VE's clock settings
(didn't yet implemented kernel part but it gonna be ve cgroup
 records).

Early rfc for comments.

Cyrill Gorcunov (3):
  time: Write general clock settings at moment of time
  time: Export delta time between checkpoint and restore stage
  crit: Add @dump_time_entry

 Makefile.crtools        |   1 +
 cr-dump.c               |   4 +
 cr-restore.c            |   6 ++
 image-desc.c            |   1 +
 include/image-desc.h    |   1 +
 include/magic.h         |   1 +
 include/protobuf-desc.h |   1 +
 include/restorer.h      |   1 +
 include/time.h          |  85 ++++++++++++++++++++
 pie/restorer.c          |   1 +
 protobuf/time.proto     |  16 ++++
 pycriu/images/images.py |   1 +
 time.c                  | 201 ++++++++++++++++++++++++++++++++++++++++++++++++
 13 files changed, 320 insertions(+)
 create mode 100644 include/time.h
 create mode 100644 time.c

-- 
2.5.0



More information about the CRIU mailing list