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

4796 Commits

Author SHA1 Message Date
Cyrill Gorcunov
4907896e4c restore: Don't unmap special areas until they are handled properly
Note for testing purpose a pause issued at the end.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-27 19:09:33 +04:00
Cyrill Gorcunov
dfe814aa58 restore: Unmap running VMAs
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-27 18:59:21 +04:00
Cyrill Gorcunov
44596497e3 restorer: Handle error case in restorer code
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-27 15:34:21 +04:00
Cyrill Gorcunov
57971f721d restorer: Some preliminary work initiated on mmap heuristics
Just to not lose the snippet.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-27 00:57:01 +04:00
Cyrill Gorcunov
aaf3291e00 restore: Dump current VMAs
Restorer needs to know which VMAs
to unmap before map a new set.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-26 22:50:46 +04:00
Cyrill Gorcunov
2cc7488de2 dump: Make VMA parsing to handle absence of map_files
Needed in testing purposes. Also make free_mappings
being a global one (will need it in restorer).

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-26 22:48:10 +04:00
Cyrill Gorcunov
214b8a6a27 restore: Update memory size needed for restorer code
Since VMA areas are allocated with page granularity
better to reflect this in mmap request. This would
allow the restorer to do munmap on page boundaries.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-26 18:13:06 +04:00
Cyrill Gorcunov
66c1464e40 restore: Drop unneded variables
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-26 18:07:33 +04:00
Cyrill Gorcunov
fa56125d16 util: Move memcopy helper into the header
Since we will need it in parasite and restorer
code rename it to inline_memcpy to avoid name
collision.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-26 18:05:32 +04:00
Cyrill Gorcunov
168d8cf17d restore: restorer is finally alive
No real restore code yet, but at least it
produce message ;)

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-26 17:35:50 +04:00
Cyrill Gorcunov
791f2c8c25 restore: Call for indirect execution
Doesn't work at moment but just to have
a snapshot point.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-26 11:16:00 +04:00
Cyrill Gorcunov
b016db7dea syscall: Add sys_exit
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-26 10:58:10 +04:00
Cyrill Gorcunov
0d20dd0b41 util: Add hex_dump helper
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-26 10:10:19 +04:00
Cyrill Gorcunov
ae41bc9d2a restore: Add restore_core_args facility
More convenient instead of manual offset calculations.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-26 00:30:41 +04:00
Cyrill Gorcunov
efdb52e36c restore: Add reading core entry
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-25 23:36:03 +04:00
Cyrill Gorcunov
0133a23a5e restore: Add opening core file
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-25 21:25:42 +04:00
Cyrill Gorcunov
f8c46a5de1 restore: Add rt_sigframe
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-25 19:27:56 +04:00
Cyrill Gorcunov
c32845ef60 dump: Shrink struct core_entry twice
No need to keep it that big. Note from
this patch if we ever deside to use kernel
elf approach -- the image structures are
to be updated in kernel as well.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-25 14:59:35 +04:00
Cyrill Gorcunov
8bcb885877 kernel: Drop redundant string from a patch changelog
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-25 00:45:30 +04:00
Cyrill Gorcunov
c706e8c6e2 restorer: Add lea_args_off helper
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-25 00:01:27 +04:00
Cyrill Gorcunov
57b45ea5eb restore: Preliminary scheme for restore
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-24 23:56:36 +04:00
Cyrill Gorcunov
20ff379ee4 dump: Append threads to the core file
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-24 23:01:42 +04:00
Cyrill Gorcunov
63e08215aa restore: Add restorer test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-24 22:23:06 +04:00
Cyrill Gorcunov
0fe80627d6 syscall: Use always_inline instead of __always_inline
__always_inline is internal defenition

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-24 22:18:13 +04:00
Cyrill Gorcunov
79c67231a1 syscall: The should be always inlined
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-24 22:16:14 +04:00
Cyrill Gorcunov
5fd13e04ab syscall: Add __NR_rt_sigreturn
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-24 17:17:39 +04:00
Cyrill Gorcunov
0259dd01c0 restore: Use open_fmt_ro helper
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-24 13:56:21 +04:00
Cyrill Gorcunov
ea0f8eac1d util: Add open_fmt_ro helper
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-24 13:56:03 +04:00
Cyrill Gorcunov
f8ad351f4d util: Make open_fmt being more general
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-24 13:51:41 +04:00
Cyrill Gorcunov
26857cc4e5 util: Move various helpers there
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-24 13:43:21 +04:00
Cyrill Gorcunov
c475bccd53 dump: Use memzero_p
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-24 11:27:28 +04:00
Cyrill Gorcunov
2dc583092c dump: Don't forget to close fds
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:43:52 +04:00
Cyrill Gorcunov
a8f8eb9c6e show: Print out thread registers as well
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:43:52 +04:00
Cyrill Gorcunov
af647ce009 dump: Dump threads params as well
We only need registers at the moment

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:43:52 +04:00
Cyrill Gorcunov
9fcecfe1a2 test: Make testee-threads to create thread inside thread
And open a file as well

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:43:15 +04:00
Cyrill Gorcunov
611debc312 dump: Add parsing of thread pids
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:43:15 +04:00
Cyrill Gorcunov
0c46b2b68f Add minexec sources
Not yet in Makefile though.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:43:15 +04:00
Cyrill Gorcunov
c28f9a2eae crtools: Use memzero_p
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:30:42 +04:00
Cyrill Gorcunov
6c4798fd44 util: Rename objzero to memzero_p
More natural name

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:30:28 +04:00
Cyrill Gorcunov
5f53dc21d9 util: Change read_safe_eof and introduce objzero and memzero
Should be more convenient to use

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:30:17 +04:00
Cyrill Gorcunov
b001849a00 dump: Get rid of global vma_area_list
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>

Conflicts:

	cr-dump.c

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:29:36 +04:00
Cyrill Gorcunov
c60f01b944 dump: Get rid of global pstree_list
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:02:27 +04:00
Cyrill Gorcunov
a0e37e779d util: Add xstrdup helper
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:01:39 +04:00
Cyrill Gorcunov
80356736b9 test: Make pthreads to report data
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-19 21:37:07 +04:00
Cyrill Gorcunov
750be4218a Move syscall codes into separate file
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-19 13:56:29 +04:00
Cyrill Gorcunov
e0f63ca802 kernel: Prepare patchset for submission
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-14 14:44:37 +04:00
Cyrill Gorcunov
c4c543c36e kernel: Update series order
Since not all patches are sent to LKML
better to have them ordered in a special
way so quilt mail --send would allow to
send a range we need.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-14 14:37:03 +04:00
Cyrill Gorcunov
003e153207 kernel: Update patch series
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-14 14:25:05 +04:00
Cyrill Gorcunov
bd2a541c96 kernel: Update readme on patches
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-14 13:22:14 +04:00
Cyrill Gorcunov
f002c67f0c kernel: Update patches description
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-14 11:48:52 +04:00