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
d71e5e44
Commit
d71e5e44
authored
Apr 10, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump: Factor out dump-regs logging
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
dcc37a09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
cr-dump.c
cr-dump.c
+2
-3
No files found.
cr-dump.c
View file @
d71e5e44
...
...
@@ -762,6 +762,8 @@ static int get_task_regs(pid_t pid, struct core_entry *core, const struct parasi
user_regs_struct_t
regs
=
{
-
1
};
int
ret
=
-
1
;
pr_info
(
"Dumping GP/FPU registers ... "
);
if
(
ctl
)
regs
=
ctl
->
regs_orig
;
else
{
...
...
@@ -917,11 +919,9 @@ static int dump_task_core_all(pid_t pid, const struct proc_pid_stat *stat,
if
(
ret
)
goto
err_free
;
pr_info
(
"Dumping GP/FPU registers ... "
);
ret
=
get_task_regs
(
pid
,
core
,
ctl
);
if
(
ret
)
goto
err_free
;
pr_info
(
"OK
\n
"
);
pr_info
(
"Obtainting personality ... "
);
ret
=
get_task_personality
(
pid
,
&
core
->
tc
.
personality
);
...
...
@@ -1349,7 +1349,6 @@ static int dump_task_thread(struct parasite_ctl *parasite_ctl, pid_t pid)
if
(
!
core
)
goto
err
;
pr_info
(
"Dumping GP/FPU registers ... "
);
ret
=
get_task_regs
(
pid
,
core
,
NULL
);
if
(
ret
)
goto
err_free
;
...
...
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