2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00
Commit Graph

4661 Commits

Author SHA1 Message Date
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
Cyrill Gorcunov
85506595e9 restorer: Drop futex constants
We don't use them yet, no need to carry.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-15 23:05:36 +04:00
Cyrill Gorcunov
b712182308 Gather file names formats in one place
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-15 18:35:55 +04:00
Cyrill Gorcunov
0fd17a08cb Bring some order in usage of VMA entries helpers
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-15 17:12:29 +04:00
Cyrill Gorcunov
bb15450d98 image: Drop tls_array from the image
We use registers set anyway

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-15 14:57:39 +04:00
Cyrill Gorcunov
bbabbe89a7 util: Use vma_entry_len helper
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-15 14:02:00 +04:00
Cyrill Gorcunov
35781a8c6d util: Drop redundant vma_area->vma.status assignment
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-15 13:37:17 +04:00
Cyrill Gorcunov
3542220a00 util: Split long line
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-15 13:32:09 +04:00
Cyrill Gorcunov
929e316f5f util: VMA area flags might exceed 4 symbols
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-15 13:28:56 +04:00
Cyrill Gorcunov
33ea81e606 Drop redundant pstree_item_info
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-15 13:19:12 +04:00
Cyrill Gorcunov
9ab6e9fe5c crtools: Use %d format for pir_t
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-15 13:12:27 +04:00
Cyrill Gorcunov
4619e48574 dump: parasite -- Drop unneeded error codes
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-15 12:22:40 +04:00