- 12 Aug, 2013 1 commit
-
-
Pavel Emelyanov authored
Currentl it waits for previous stage to complete and starts the next one. Now it starts the next one and waits for it to complete. The latter way fits better into both -- the code and the head. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 11 Aug, 2013 12 commits
-
-
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
This will only work if timiings are reported by a single task. Collecting them from several tasks is to be done. 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
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
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
And rename it to better reflect what it does. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Returning the new proc fd value is useless. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 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 4 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>
-