2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +00:00

2322 Commits

Author SHA1 Message Date
Pavel Emelyanov
605220e7f7 crtools: Cleanup the 'whether I should dump this page' decision
Just introduce a helper for further patches.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-25 18:30:44 +04:00
Cyrill Gorcunov
9eeb003766 util: Add K/M/G bytes helpers
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-24 15:07:03 +04:00
Pavel Emelyanov
47b7404d73 crtools: Don't save vma's inode info in image
This one isn't used on restore process, since the file mapped is
stored in the fdinfo part of the images.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 14:03:24 +04:00
Pavel Emelyanov
9299d53d32 crtools: Don't show vma fd in --show output
This entry is for restorer only. In image the fd is -1 always.

Signed-off-by; Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 14:03:20 +04:00
Pavel Emelyanov
fb44c9d82b crtools: Don't hold pid on vma image
It's pointless. All vmas are stored in the per-pid image file.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 14:03:14 +04:00
Cyrill Gorcunov
64f867f54e dump: Use absolute paths for page dump file
Otherwise the dumpee migh be unable to locate it.

Reported-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 13:10:37 +04:00
Cyrill Gorcunov
f139959ead restore: Don't use +x permission for .out files
We don't execute them anymore.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 01:22:37 +04:00
Cyrill Gorcunov
7ce2761007 restore: Check for incomplete reading of vma-entry
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 01:18:01 +04:00
Cyrill Gorcunov
2beec2268b restore: Update error messages
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 01:12:38 +04:00
Cyrill Gorcunov
818651b22a restore: Continue restore even if sys_prctl failed
Need this fix until testing kernel get updated.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 00:58:21 +04:00
Cyrill Gorcunov
7b8dee7275 restore: Use pr_perror instead of plain perror
This prints line number as well.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 00:56:58 +04:00
Cyrill Gorcunov
ad93e59d57 restore: Drop redundant rst_mutex_lock
It leads to circular lockup.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 00:51:17 +04:00
Cyrill Gorcunov
122cae2111 dump: Add -k (kill dumped) option
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 22:09:28 +04:00
Cyrill Gorcunov
d3a30d6bb7 kernel: Update PR_ patch
It happened to not flush error code even if
syscall successed. Fixed.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 21:13:08 +04:00
Cyrill Gorcunov
5aa22f131b dump: Print error codes if dumper failed in parasite section
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 20:07:20 +04:00
Cyrill Gorcunov
84e57b2a66 restore: Add prctl validation
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 19:25:35 +04:00
Cyrill Gorcunov
2e00d0199d docs: Add internals details
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 16:48:57 +04:00
Cyrill Gorcunov
60c9235f6b Update TODO
Drop bullets which are implemented

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 14:36:00 +04:00
Cyrill Gorcunov
ea423aa56f test: Update makefile clean target
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 13:29:27 +04:00
Cyrill Gorcunov
477adf0cf2 test: pipes -- Drop unused vars
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 13:21:48 +04:00
Cyrill Gorcunov
8ea8d4eee5 test: pipes -- Add a second pipe
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 13:20:05 +04:00
Cyrill Gorcunov
46083e9e00 restore: Don't forget to skip data on attached pipes
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 13:12:30 +04:00
Cyrill Gorcunov
0cd579abd2 Merge branch 'tests'
* tests:
  test: Add test-pthreads test
2011-11-22 01:51:09 +04:00
Cyrill Gorcunov
4368d57c48 test: Add test-pthreads test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 01:50:45 +04:00
Cyrill Gorcunov
c704fc272e util: Make VMA proto being printed with 8 char width
Fancy output.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 00:13:04 +04:00
Cyrill Gorcunov
118b665558 Merge branch 'tests'
* tests:
  test: Add test-pipe-async test
  teste: Add test-shmem-three-async test
  test: Update shmem more frequently
  test: Add printing header
  test: Add test-shmem-async test
  test: Add test-rnd-from-file test
  test: Add test-counter test
  test: Drop old tests
2011-11-21 23:56:08 +04:00
Cyrill Gorcunov
5e5cb3b321 test: Add test-pipe-async test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 23:55:37 +04:00
Cyrill Gorcunov
22f8986902 teste: Add test-shmem-three-async test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 23:45:35 +04:00
Cyrill Gorcunov
1355c7d29a test: Update shmem more frequently
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 22:58:02 +04:00
Cyrill Gorcunov
e66efb11a1 test: Add printing header
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 22:56:12 +04:00
Cyrill Gorcunov
8650847b83 test: Add test-shmem-async test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 22:53:18 +04:00
Cyrill Gorcunov
d2f382e729 test: Add test-rnd-from-file test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 22:42:59 +04:00
Cyrill Gorcunov
37e73d6a1d test: Add test-counter test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 21:25:43 +04:00
Cyrill Gorcunov
6357ad403f restore: Fix up message on fixing maps
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 20:38:35 +04:00
Pavel Emelyanov
985990de23 crtools: Show 6 page va-s per line in [Pages] section
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 20:33:55 +04:00
Cyrill Gorcunov
af4eb76bb0 test: Drop old tests
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 20:27:58 +04:00
Pavel Emelyanov
92a08bb25a crtools: Show shmem dump file contents
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 20:23:22 +04:00
Cyrill Gorcunov
8b80bba789 kernel: Update patch series
As usually based on Linux 3.2-rc1

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 20:21:14 +04:00
Cyrill Gorcunov
71a5efefe2 restore: Print errors in plain numbers instead of hex encoded values
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 18:00:12 +04:00
Cyrill Gorcunov
9263320339 restore: Add write_num_n helper
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 17:52:57 +04:00
Cyrill Gorcunov
bf5ada1d61 restore: Print faulting vDSO address on error
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 17:02:00 +04:00
Cyrill Gorcunov
b38205f580 Update PR_ opcodes
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 16:47:36 +04:00
Cyrill Gorcunov
b06349fc49 prctl: Rename PR_ entries
Tejun Heo proposed to use more general names
unrelated to checkpoint-restore procedure.

So be it (maybe someone else will need this
entries as well).

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 12:54:14 +04:00
Cyrill Gorcunov
777dc994aa types: PTRACE_SEIZE and PTRACE_INTERRUPT already defined in ptrace.h
On linux-3.1.1 (fc16) these constants already defined in system
ptrace.h

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-20 10:31:16 +04:00
Cyrill Gorcunov
d0eec0e271 restore: Drop self-vmas file once it's not needed
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-18 22:30:32 +04:00
Cyrill Gorcunov
d9aa7f021c restore: Add mutexes via futex syscall and order threads creation
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-18 16:09:01 +04:00
Cyrill Gorcunov
458717473e Update TODO so I wont forget about mutexes
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-17 01:05:18 +04:00
Cyrill Gorcunov
01f8f8f4d1 restore: Bring trivial locker back
Threads are better to be restored in serialized
way otherwise if some error happened an error
message will be screwed.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-17 00:59:08 +04:00
Cyrill Gorcunov
a095617253 restore: Simplify sigreturn code
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-16 18:19:24 +04:00
Cyrill Gorcunov
11eb2ca409 Add ALIGN helper
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-16 18:16:12 +04:00