[CRIU] [PATCH 00/12] posix-timer: Add posix timers to criu

Pavel Tikhomirov snorcht at gmail.com
Thu Jun 27 12:32:16 EDT 2013


Hi,

In this patch I want to add posix timers dump/restore to criu.

In first patch stands for syscalls needed to opperate with timers.

In 2-6 patches: add structures, fd's, show functionality, parse proc.
Also there are parasite function to get time from timers.

In 7-10 patches: restore: read info from image, sort by timer_id, 
place it in allocated mem and remap it in region which will be shared.
And when injected, start timers and set them.

In 11-12 patch modify tests for posix timers - add 'holes' check, and
add macros which excludes periodic test.

Thanks!

Pavel Tikhomirov (12):
  posix-timer: Add proper syscalls definition.
  posix-timer: Add protobuf message and rename to protobuf/timer.proto
  posix-timer: Add fd, magic and show functionality.
  posix-timer: Parse proc /proc/<pid>/timers and save info in list
  posix-timer: Get info in parasite, and structures
  posix-timer: Add dump functionality
  posix-timer: Add restore structures
  posix-timer: Restore and fix one timer
  posix-timer: Add reading image and put it to shared memory
  posix-timer: Restore timers, need create and delete 'fake' timers
  posix-timer: Add test non consequent timer ids
  posix-timer: Add macros to exclude periodic

 arch/x86/syscall-x86-64.def          |    5 ++
 cr-dump.c                            |   17 ++++-
 cr-restore.c                         |  128 +++++++++++++++++++++++++++++++++-
 cr-show.c                            |    7 +-
 image-desc.c                         |    1 +
 include/cr-show.h                    |    1 +
 include/crtools.h                    |    1 +
 include/image-desc.h                 |    1 +
 include/magic.h                      |    1 +
 include/parasite-syscall.h           |    6 +-
 include/parasite.h                   |   18 +++++
 include/proc_parse.h                 |   13 ++++
 include/protobuf-desc.h              |    1 +
 include/restorer.h                   |   19 +++++
 include/syscall-types.h              |    2 +
 include/util.h                       |    1 +
 parasite-syscall.c                   |   71 +++++++++++++++++--
 pie/parasite.c                       |   25 +++++++
 pie/restorer.c                       |   52 ++++++++++++++
 proc_parse.c                         |  121 ++++++++++++++++++++++++++++++++
 protobuf-desc.c                      |    3 +-
 protobuf/Makefile                    |    2 +-
 protobuf/itimer.proto                |    6 --
 protobuf/timer.proto                 |   20 ++++++
 test/zdtm/live/static/posix_timers.c |   28 ++++++++
 25 files changed, 531 insertions(+), 19 deletions(-)
 delete mode 100644 protobuf/itimer.proto
 create mode 100644 protobuf/timer.proto

-- 
1.7.9.5



More information about the CRIU mailing list