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
6a3c7ab3
Commit
6a3c7ab3
authored
Oct 31, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore: Drop no longer needed printing
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
bf41dcac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
27 deletions
+7
-27
restorer.c
restorer.c
+7
-27
No files found.
restorer.c
View file @
6a3c7ab3
...
...
@@ -170,8 +170,6 @@ self_len_end:
if
(
fd_self_vmas
<
0
)
goto
core_restore_end
;
write_hex_n
(
__LINE__
);
/* Note no magic constant on fd_self_vmas */
sys_lseek
(
fd_self_vmas
,
0
,
SEEK_SET
);
while
(
1
)
{
...
...
@@ -184,14 +182,10 @@ self_len_end:
if
(
!
(
vma_entry
.
status
&
VMA_AREA_REGULAR
))
continue
;
write_hex_n
(
__LINE__
);
write_hex_n
(
vma_entry
.
start
);
if
(
sys_munmap
((
void
*
)
vma_entry
.
start
,
vma_entry
.
end
-
vma_entry
.
start
))
goto
core_restore_end
;
write_hex_n
(
__LINE__
);
write_char
(
'\n'
);
}
sys_close
(
fd_self_vmas
);
...
...
@@ -214,12 +208,11 @@ self_len_end:
if
(
!
(
vma_entry
.
status
&
VMA_AREA_REGULAR
))
continue
;
write_hex_n
(
__LINE__
);
write_hex_n
(
vma_entry
.
start
);
vma_entry
.
fd
=
-
1UL
;
/* for a while */
vma_entry
.
pgoff
=
0
;
write_hex_n
(
vma_entry
.
end
-
vma_entry
.
start
);
/*
* Should map memory here. Note we map them as
* writable since we're going to restore page
...
...
@@ -228,17 +221,18 @@ self_len_end:
va
=
sys_mmap
((
void
*
)
vma_entry
.
start
,
vma_entry
.
end
-
vma_entry
.
start
,
vma_entry
.
prot
|
PROT_WRITE
,
vma_entry
.
flags
|
MAP_ANONYMOUS
|
MAP_FIXED
,
(
vma_entry
.
flags
|
MAP_ANONYMOUS
|
MAP_FIXED
|
MAP_PRIVATE
)
&
~
MAP_SHARED
,
vma_entry
.
fd
,
vma_entry
.
pgoff
);
if
(
va
!=
vma_entry
.
start
)
{
write_hex_n
(
vma_entry
.
start
);
write_hex_n
(
va
);
goto
core_restore_end
;
}
write_hex_n
(
__LINE__
);
write_char
(
'\n'
);
}
/*
...
...
@@ -250,21 +244,14 @@ self_len_end:
break
;
if
(
ret
!=
sizeof
(
va
))
goto
core_restore_end
;
write_hex_n
(
__LINE__
);
write_hex_n
(
va
);
if
(
!
va
)
break
;
write_hex_n
(
__LINE__
);
ret
=
sys_read
(
fd_core
,
(
void
*
)
va
,
PAGE_SIZE
);
if
(
ret
!=
PAGE_SIZE
)
{
write_hex_n
(
ret
);
goto
core_restore_end
;
}
write_hex_n
(
__LINE__
);
write_char
(
'\n'
);
}
/*
...
...
@@ -288,15 +275,9 @@ self_len_end:
if
(
vma_entry
.
prot
&
PROT_WRITE
)
continue
;
write_hex_n
(
__LINE__
);
write_hex_n
(
vma_entry
.
start
);
sys_mprotect
(
vma_entry
.
start
,
vma_entry
.
end
-
vma_entry
.
start
,
vma_entry
.
prot
);
write_hex_n
(
__LINE__
);
write_char
(
'\n'
);
}
sys_close
(
fd_core
);
...
...
@@ -369,7 +350,6 @@ self_len_end:
:
"r"
((
long
)
rt_sigframe
+
sizeof
(
*
rt_sigframe
))
:
"rax"
,
"rsp"
,
"memory"
);
core_restore_end:
write_hex_n
(
sys_getpid
());
for
(;;)
...
...
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