- 18 Oct, 2012 2 commits
-
-
Cyrill Gorcunov authored
Otherwise PRIO_PROCESS may be not found. Reported-by:
Andrew Grigorev <andrew@ei-grad.ru> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Grigorev authored
It should fit the sa_sigaction declaration, otherwise compiler complains about uncasted assignments. | restorer.c: In function тАШ__export_restore_taskтАЩ: | restorer.c:318:20: error: assignment from incompatible pointer type [-Werror] So just use siginfo_t here from the system signal.h header. Signed-off-by:
Andrew Grigorev <andrew@ei-grad.ru> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 16 Oct, 2012 1 commit
-
-
Pavel Emelyanov authored
No magic here, just fetch info using getpriority and sched_getxxx calls. Good news is that the mentioned syscalls take pid as argument and do work with it, i.e. -- no need in parasite help here. Restore is splitted into prep -- copy sched bits from image on restorer args -- and the restore itself. It's done to avoid restoring tasks info with IDLE priority ;) To make restorer not-fail sched bits are validated for sanity on prep stage. Minimal sanity test is also there. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 15 Oct, 2012 9 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
We need to use namespace local sid/pgid parameters assigned on tty link, thus use parasite helper. Otherwise we might fail on restoring controlling terminal inside namespace (though everything else will work even without this patch). Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Will need it in tty layer. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Since we've started fetching sid/pgid from the dumpee context we're allowed to obtain sid/pgid on a slave peer. This is perfectly valid. So drop this test. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Some file-type specific parameters can be fetched with parasite code only, so lets carry parasite control block pointer in struct fd_parms. This is a bit ugly but requires less code to touch and enough for now. In long terms we need some more generalized routine/hooks which would depends on file type. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Will need it to fetch tty link parameters. This is because the kernel provides SID/PGID related to the caller context, and if we're dumping the process inside namespace -- we need local SID/PGIDs, not global ones. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
In case if here no task found which would restore controlling terminal -- exit with error instead of continue with just error message. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 12 Oct, 2012 6 commits
-
-
Pavel Emelyanov authored
Currently the pretty format leaks to the nested messages and affects the way they are shown. Fix this by assuming the nested messages to be non-pretty. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
There's some bug in show fn for options :( Will be fixed later. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
After reworking sk showing on generic pb showers this one is not required. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
No need for memcpy here, it's plain integer value which need to be filled. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 11 Oct, 2012 8 commits
-
-
Pavel Emelyanov authored
And write a test for them. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
This test set up two posix timers with different clocks: REALTIME and MONOTONIC. Both send signals. Signals are disabled before suspend. This makes overrun counters increasing. After restore tests enables signals, and make sure, that: 1) signal handler for both timers was called with proper arguments 2) time displacement for both timers is not greater than specified (10% by default). Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Acked-by:
Vladimir Davydov <VDavydov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
A test allocates and filles one page, creates a new child, then compares pfn-s for both processes. v2: set a position on each iteration Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Dumping them is performed via parasite, since calling the getgroups is the only way of getting the complete list. Currently the nr of groups to dump is limited explicitly with the size of shared memory between crtools and parasite. This is MUCH more that we have seen on real apps so far. Restoring is done early, before restorer blob not to carry the undefined array of grpous in there. This is OK, since groups do not affect us at that point and are not affected by subsequent creds restore. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Getting groups can be done vie proc, but there's only 32 on them, while task may have up to 65k :( We will use parasite for that and thus require this syscall definition. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Currently move there the secbits dumping, which is not dumped via misc-dumping command. This patch is required to support per-task groups dumping (setgroups/getgroups) -- we'll have to drain the groups from parasite. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
There's a shared memory between crtools and parasite. No need in copying args back and forth, just get the args pointer in crtools and work on it. Where not possible (misc, fds drain) do explicit memecpy (to be fixed). Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 10 Oct, 2012 1 commit
-
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 09 Oct, 2012 1 commit
-
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 08 Oct, 2012 5 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's already done in alloc_pstree_item() by recently merged commit. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
I believe this make sense to keep this structure in pstree.h where pstree related data lives. Also I've added some comments on struct pid members. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
To be close to the kernel naming. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
- @list member closer to @children - add some comments on memebers - add space lines for members grouping Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 07 Oct, 2012 4 commits
-
-
Pavel Emelyanov authored
Just as for restorer, but simper, as the parasite logging is just sys_write_msg :) Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Remove the restorer-log and link log-simple into restorer blob. Now we can use the normal pr_foo API. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
It's supposed to be used by parasite and restorer blob. It has API equal to the core one -- with setfd, set_loglevel and (the main thing) print_on_level fn. It currently supports only strings, decimal and hex numbers (int and long). Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 03 Oct, 2012 3 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Otherwise "show" action become unreadable. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-