Cyrill Gorcunov
ba5aef005a
kernel: Add patch description for /proc/$pid/stat addition
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 16:23:12 +04:00
Cyrill Gorcunov
9b6708e3a3
dump: Don't poke cr fdset with open/close needlessly
...
Reported-by: Pavel Emelyanov xemul@parallels.com
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 16:18:32 +04:00
Cyrill Gorcunov
cecd0ef138
utils: Inability to open map_files/ is fatal error
...
Reported-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 16:07:34 +04:00
Pavel Emelyanov
c416a033f9
Rename execute_image to prepare_and_execute_image
...
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 15:46:04 +04:00
Cyrill Gorcunov
640e5c46be
dump: Call fsync only if needed
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 13:41:13 +04:00
Pavel Emelyanov
d48706328e
Add comments on fd set
...
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 13:33:32 +04:00
Cyrill Gorcunov
69a7b9e7ce
kernel: Add stack being found test
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 12:03:49 +04:00
Cyrill Gorcunov
9977390e41
elf: Don't put core structure on stack
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 11:35:20 +04:00
Cyrill Gorcunov
147d2fd723
kernel: Move /proc/$pid/stat changes into a separate patch
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 00:37:19 +04:00
Cyrill Gorcunov
3530297a5b
show: Fixup typos in printing mm data
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 00:31:02 +04:00
Pavel Emelyanov
1f14766919
Generalize file opening
...
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 18:34:15 +04:00
Pavel Emelyanov
5a397e8a59
Rework fdinfo readinf to use FILE *
...
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 18:30:04 +04:00
Cyrill Gorcunov
4389c021fc
dump, kernel: Add some mm structure members into the dump
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 18:05:07 +04:00
Cyrill Gorcunov
ce65f2f718
dump, kernel: Add start/end_code data
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 16:02:36 +04:00
Cyrill Gorcunov
b2c4ebf207
kernel: Make sure brk area is found
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 13:33:20 +04:00
Cyrill Gorcunov
94789dcfc9
util: Show heap area
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 13:33:02 +04:00
Cyrill Gorcunov
f7e6e63b44
kernel, dump: Obtain brk value
...
Also re-make image to be 2 pages in size
which should be enough for basic params we
need to restore tasks.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 09:40:02 +04:00
Cyrill Gorcunov
116b00ee17
kernel: Restore explicit set of fs/gs
...
We can't wait until task get switched but need
to setup gs/fs by own. Also fixup cp_reg arguments
order otherwise zeros are written into registers instead
of proper values.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 19:11:27 +04:00
Cyrill Gorcunov
7d712407aa
kernel: Explicit registers assignment
...
Since types might be changed one day
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 14:41:22 +04:00
Cyrill Gorcunov
c3553db68b
kernel: Use ptrace helper to restore GPRs
...
This shrinks code a bit
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 13:37:08 +04:00
Cyrill Gorcunov
a997fcf635
kernel: Use set_fs helper to operate with ptrace
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 12:34:48 +04:00
Cyrill Gorcunov
572e8a1519
kernel, elf: Move arch dependant things into arch/
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 10:57:13 +04:00
Cyrill Gorcunov
ec9496c147
image: Use CKPT_ARCH_SIZE
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 10:10:07 +04:00
Cyrill Gorcunov
4b7a318322
dump: Prepare for new core_entry layout
...
core_entry layout is arch dependant.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 01:32:39 +04:00
Cyrill Gorcunov
68cc400790
kernel: Use __u32 for inkernel stuff
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-10 21:06:19 +04:00
Cyrill Gorcunov
8c4894a8a5
kernel: Restore FPU context if needed
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-10 17:06:51 +04:00
Cyrill Gorcunov
3135c94bb9
test: Add some basic fpu operation
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-10 17:05:31 +04:00
Cyrill Gorcunov
99466eb328
dump: Add dumping a tasks's flags
...
We need it to figure out if FPU was used
so that we need to restore context later.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-10 17:05:12 +04:00
Cyrill Gorcunov
6307ce67dc
kernel: Update changelog for elf-checkpoint file
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-06 20:13:06 +04:00
Cyrill Gorcunov
e47408c93c
kernel: Update binfmt patch
...
- Add check for chkp file header version and arch
- Send SIGKILL on error properly
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-06 20:02:16 +04:00
Cyrill Gorcunov
ce5298188c
restore: Update Elf checkpoint handling
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-06 19:02:15 +04:00
Cyrill Gorcunov
4278324dd4
Drop compiled file from repo
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-06 15:04:56 +04:00
Cyrill Gorcunov
2efb66d69a
dump: Sanitize dumping message
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-06 14:07:48 +04:00
Cyrill Gorcunov
a97985ce95
kernel: Update elf handling to not unlink thread from parent
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-04 16:52:42 +04:00
Cyrill Gorcunov
e9075241e1
elf: Allow up to 1G of memory being stored on disk
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-04 14:43:59 +04:00
Cyrill Gorcunov
2f3c929aff
dump: Add should_ignore_fd helper
...
We should ignore tty devices for a while.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-04 14:07:07 +04:00
Cyrill Gorcunov
609e431376
Add cr_options structure
...
We will need more options since the
tool should support both cgroups freezer
and a regular task stop/dump/restore/continue
transition.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-04 01:50:19 +04:00
Cyrill Gorcunov
374ec7604e
parasite: Fix sign lost at error checking
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-04 01:48:17 +04:00
Cyrill Gorcunov
1063590662
dump: Fix up error jump on fchmod failure
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-03 12:04:09 +04:00
Cyrill Gorcunov
f170895975
dump: Allow parasite-dumper to write pages with non-privileged process
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-03 11:52:13 +04:00
Cyrill Gorcunov
8bbed96981
todo: Process name restoration is complete
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-01 20:01:34 +04:00
Cyrill Gorcunov
8f0af4f8a6
Restore task's command line as well
...
Note binary format for core file is changed.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-01 13:24:34 +04:00
Cyrill Gorcunov
a00ef142f8
Use pr_err for error printing
...
To follow kernel style
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 14:37:12 +04:00
Cyrill Gorcunov
f83520aa59
Update TODO
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 14:36:21 +04:00
Cyrill Gorcunov
6bd95e402d
Add TODO
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 14:26:24 +04:00
Cyrill Gorcunov
c426ba3721
Update to README
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 14:25:37 +04:00
Cyrill Gorcunov
c704ab9064
test: Add anonymous shared memory test
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 13:08:26 +04:00
Cyrill Gorcunov
65e9402d47
restore: Fix pipes restore if both pipe ends are used by former process
...
In case if the former process used both pipe ends we fall
into endless loop since the 'users' never reaches 1. So
to resolve this during the pipe collectioning we check if
both pipe ends were used by a former process and if so --
we connect first pipe end immediately in create_pipe and
connect the rest via attach_pipe.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 09:00:45 +04:00
Cyrill Gorcunov
61a6eb781c
restore: Make sure shmems are zeroified
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 01:13:16 +04:00
Andrew Vagin
d5d8d920dd
make: Fix deps for non-parasite code
...
Without it parallel execution fails.
Reported-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Vagin <avagin@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
2011-09-29 17:02:15 +04:00