- 14 Aug, 2013 4 commits
-
-
Andrey Vagin authored
Cc: Yicheng Qin <yichengq@google.com> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Yicheng Qin authored
In batch-test mode, the script skips failed individual tests instead of exiting. This ensures that all zdtm tests can be run in one pass, which provides better overview of test result. Signed-off-by:
Yicheng Qin <yichengq@google.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Yicheng Qin authored
Adjust the format of information printed. Print out more necessary debug information. Display error message in STDERR and make it more readable. Signed-off-by:
Yicheng Qin <yichengq@google.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
v2: restore page contents directly into memory Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 13 Aug, 2013 1 commit
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 11 Aug, 2013 8 commits
-
-
Pavel Emelyanov authored
On restore we compare pages' contents with memcmp to check which of them can remain shared. Report this info in restore stats. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
These are atomic_add-s on shmalloc-ed stats. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
For restore all this memory would be unused. Plus, we'd need some sign what stats to collect. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Restore stats are difficult -- we have to collect them from several tasks and thus existing plain variables would not work. We'll need shared memory with stats, so prepre for allocating one. Other than this -- put call to write_stats() where appropriate for restore. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We'll have --address argument reused for library, so make this abstract address, not ipv4 one. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 13 Aug, 2013 3 commits
-
-
Yicheng Qin authored
Use TEST_PATTERN instead of TEST_NAME as argument. All previous zdtm commands can be used still. It is useful to run certain part of tests. Example of running in-namespace tests only: ./test/zdtm.sh ^ns/.* Signed-off-by:
Yicheng Qin <yichengq@google.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Yicheng Qin authored
Add -g option in zdtm.sh. Using -g option can just generate binaries of all tests to run in zdtm. Moreover, appending test name after -g option can just generate the binary for the test. Signed-off-by:
Yicheng Qin <yichengq@google.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Yicheng Qin authored
Signed-off-by:
Yicheng Qin <yichengq@google.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 10 Aug, 2013 1 commit
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 09 Aug, 2013 6 commits
-
-
Andrew Vagin authored
Due to this issue the server initiates closing a connection and its socket is transfered into the TIME_WAIT state, so the second run of page-server fails with the error "the address is already in use". Signed-off-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
They are trivial and these functions will be used in many places Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Here are two case: * check that a vma grows after restoring * check that a vma can be restored if its guard page was overlapped by another vma. Currently criu isn't able to dump/restore this test case. Who wants to fix this issue? Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Currently criu sends data to the page server, but it doesn't get any feedback, so it can't be sure that all data have been accepted. This patch adds a flush command, which requires an answer from the page server. This command is sent before disconnecting. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
I've just occasionally tried to run criu on old openvz kernel and the error message was looking somehow strange to me | Error (kerndat.c:39): Can't stat piggie: No such file or directory Lets produce some more detailed error text. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 07 Aug, 2013 5 commits
-
-
Andrew Vagin authored
We have already tried to prevent generating core files for zombies: commit 6da52216 Author: Andrey Vagin <avagin@openvz.org> Date: Fri Jul 12 18:14:23 2013 +0400 restore: set the zero limit for RLIMIT_CORE But it doesn't work if a core file is sent into a pipe. This functionality is used by the abrt daemon for example. This patch uses more direct way, it unsets the dumpable flag with help of PR_SET_DUMPABLE. v2: remove the previous hack Signed-off-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Yicheng Qin authored
The checking helps debug unexpected failures. The patch is useful to debug test failure. Chdir() may meet failure if the process does not have enough permissioin. Then, it cannot rename in-progress output file to output file. Finally, test script cannot catch 'PASS' flag from the output file and record it as failure. As the result, the test fails without any error message. Signed-off-by:
Yicheng Qin <yichengq@google.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Yicheng Qin authored
Label 'out' and chdir() below it are just redundant. Remove them to make test simple. Signed-off-by:
Yicheng Qin <yichengq@google.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Yicheng Qin authored
struct sockaddr_un Struct sockaddr_un is used in program for bind() to listen on a local file. Path is one of its attributes and only has 108-byte size. It may happen that the path is too small to contain the whole real path, which contains current working directory now. This may lead to two sockets listening on the same file. So, we change the path to be "/tmp". It ensures that filename cannot exceed the limit. Additionally, to run it well with namespace, make new directory named 'tmp' under constructed root. Signed-off-by:
Yicheng Qin <yichengq@google.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Yicheng Qin authored
Path generated in the test is copied into sun_path attribute in struct sockaddr_un. Additional check on whether sun_path can contain the whole path is added. It is useful because if sun_path can only contain the first part of the path, all sockadd_un will point to the same location, which leads to error. Signed-off-by:
Yicheng Qin <yichengq@google.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 06 Aug, 2013 4 commits
-
-
Andrey Vagin authored
This test uses systemtap to replace random parasite command on invalide command. The parasite code received this command and should rollback itself. CRIU didn't recived ack, should understand that something wrong and exits. The systemtap inverts exit code of criu. "zdtm.sh -d" is used for executing tests and testing that the state of processes don't corrupted. criu should be compiled without optimizations (make DEBUG=1) v2: randomize a command, which will be replaced Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
The packet can be retransmited after dumping the tcp connect. The first one is that the connection is blocked for only one direction. The second one is that TCP timers continue work during dumping and they can send packets. tcp_timestamp is saved for each tcp connections and then it’s restored. So if a packet is sent after dumping, its timestamps is saved by another side and this timestamp is sent back in the next packet as the tsecr parameter. If this packet is received after restoring, it looks like a packets from the future. https://bugzilla.openvz.org/show_bug.cgi?id=2676Signed-off-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Yicheng Qin authored
/dev/null Clear the umask when creating /dev/null and restore the umask after the creation. Mountpoints test unlinks and makes new /dev/null inside by mknod. But in some linux, there is default umask, e.g., as 022. It means that /dev/null created directly cannot be wrote by group and other users. It is not reasonable because /dev/null should be accessable to all users. Signed-off-by:
Yicheng Qin <yichengq@google.com> 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>
-
- 29 Jul, 2013 2 commits
-
-
Pavel Emelyanov authored
The difficulty is that this code is required in both -- pie and non-pie contexts. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Will put more things there. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 05 Aug, 2013 3 commits
-
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
for that the mount point is bind-mounted in a temporary place. v2: * check, that the fs you get access to at the end is _really_ the one you wanted to * use switch_ns/restore_ns helpers v3: reuse code of __open_mountpoint and a few small cleanups Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
When CRIU wants to dump content, it checks that nothing is overmounted. The list of children for such mounts must be empty, but these lists are filled during constructing a tree of mounts. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 31 Jul, 2013 1 commit
-
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 25 Jul, 2013 2 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-