Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
5eda66dd
Commit
5eda66dd
authored
Jan 16, 2012
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zdtm: Add vDSO test
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@openvz.org
>
parent
139a2ee2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
zdtm.sh
test/zdtm.sh
+1
-0
Makefile
test/zdtm/live/static/Makefile
+1
-0
vdso00.c
test/zdtm/live/static/vdso00.c
+34
-0
No files found.
test/zdtm.sh
View file @
5eda66dd
...
...
@@ -17,6 +17,7 @@ $ZP/static/write_read01
$ZP
/static/write_read02
$ZP
/static/wait00
$ZP
/static/pthread00
$ZP
/static/vdso00
$ZP
/static/file_shared
$ZP
/streaming/pipe_loop00
$ZP
/streaming/pipe_shared00
...
...
test/zdtm/live/static/Makefile
View file @
5eda66dd
...
...
@@ -25,6 +25,7 @@ TST_NOFILE = \
ptrace_sig
\
pipe00
\
pthread00
\
vdso00
\
# jobctl00
\
TST_FILE
=
\
...
...
test/zdtm/live/static/vdso00.c
0 → 100644
View file @
5eda66dd
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
#include "zdtmtst.h"
const
char
*
test_doc
=
"Check if we can use vDSO after restore
\n
"
;
const
char
*
test_author
=
"Cyrill Gorcunov <gorcunov@openvz.org"
;
int
main
(
int
argc
,
char
*
argv
[])
{
struct
timeval
tv
;
struct
timezone
tz
;
test_init
(
argc
,
argv
);
test_msg
(
"%s pid %d
\n
"
,
argv
[
0
],
getpid
());
gettimeofday
(
&
tv
,
&
tz
);
test_msg
(
"%d time: %10li
\n
"
,
getpid
(),
tv
.
tv_sec
);
test_daemon
();
test_waitsig
();
/* this call will fail if vDSO is corrupted */
gettimeofday
(
&
tv
,
&
tz
);
test_msg
(
"%d time: %10li
\n
"
,
getpid
(),
tv
.
tv_sec
);
pass
();
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment