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

Pavel Tikhomirov snorcht at gmail.com
Wed May 29 19:36:09 EDT 2013


Hi,

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

In first patch I add little function which can replace timeval_valid,
because it is not universal enough to take both timeval and timespec.

Second patch stands for syscalls needed to opperate with timers.

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

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

In 12 patch modify tests for posix timers - use oneshot timers, and add
'holes'.

Thanks!

Pavel Tikhomirov (12):
  posix-timer: Add time_valid() function
  posix-timer: Add proper syscalls definition.
  posix-timer: Add protobuf structure
  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: Remove periodic test, test non consequent timer ids

 arch/x86/syscall-x86-64.def          |    5 ++
 cr-dump.c                            |   13 ++++
 cr-restore.c                         |  120 ++++++++++++++++++++++++++++++++-
 cr-show.c                            |    6 ++
 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           |    3 +
 include/parasite.h                   |   14 ++++
 include/proc_parse.h                 |   19 ++++++
 include/protobuf-desc.h              |    1 +
 include/restorer.h                   |   18 +++++
 include/syscall-types.h              |    2 +
 include/util.h                       |    1 +
 parasite-syscall.c                   |   62 +++++++++++++++++
 pie/parasite.c                       |   25 +++++++
 pie/restorer.c                       |   50 ++++++++++++++
 proc_parse.c                         |  121 ++++++++++++++++++++++++++++++++++
 protobuf-desc.c                      |    2 +
 protobuf/Makefile                    |    1 +
 protobuf/posix-timer.proto           |   13 ++++
 test/zdtm/live/static/posix_timers.c |   37 +++++------
 24 files changed, 496 insertions(+), 22 deletions(-)
 create mode 100644 protobuf/posix-timer.proto

-- 
1.7.9.5



More information about the CRIU mailing list