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
cd0075ab
Commit
cd0075ab
authored
Jul 16, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump: Don't push parasite-ctl into fns needing pid only
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
c2dec75b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
cr-dump.c
cr-dump.c
+4
-7
No files found.
cr-dump.c
View file @
cd0075ab
...
...
@@ -463,12 +463,11 @@ err:
return
ret
;
}
static
int
dump_task_mm
(
struct
parasite_ctl
*
ctl
,
const
struct
proc_pid_stat
*
stat
,
static
int
dump_task_mm
(
pid_t
pid
,
const
struct
proc_pid_stat
*
stat
,
const
struct
parasite_dump_misc
*
misc
,
const
struct
cr_fdset
*
fdset
)
{
MmEntry
mme
=
MM_ENTRY__INIT
;
int
ret
=
-
1
;
pid_t
pid
=
ctl
->
pid
.
real
;
mme
.
mm_start_code
=
stat
->
start_code
;
mme
.
mm_end_code
=
stat
->
end_code
;
...
...
@@ -644,15 +643,13 @@ int dump_thread_core(int pid, CoreEntry *core, const struct parasite_dump_thread
return
ret
;
}
static
int
dump_task_core_all
(
struct
parasite_ctl
*
ctl
,
CoreEntry
*
core
,
static
int
dump_task_core_all
(
pid_t
pid
,
CoreEntry
*
core
,
const
struct
proc_pid_stat
*
stat
,
const
struct
parasite_dump_misc
*
misc
,
const
struct
cr_fdset
*
cr_fdset
)
{
int
fd_core
=
fdset_fd
(
cr_fdset
,
CR_FD_CORE
);
int
ret
=
-
1
;
pid_t
pid
=
ctl
->
pid
.
real
;
pr_info
(
"
\n
"
);
pr_info
(
"Dumping core (pid: %d)
\n
"
,
pid
);
...
...
@@ -1500,13 +1497,13 @@ static int dump_one_task(struct pstree_item *item)
goto
err_cure
;
}
ret
=
dump_task_mm
(
p
arasite_ctl
,
&
pps_buf
,
&
misc
,
cr_fdset
);
ret
=
dump_task_mm
(
p
id
,
&
pps_buf
,
&
misc
,
cr_fdset
);
if
(
ret
)
{
pr_err
(
"Dump mm (pid: %d) failed with %d
\n
"
,
pid
,
ret
);
goto
err_cure
;
}
ret
=
dump_task_core_all
(
p
arasite_ctl
,
item
->
core
[
0
],
&
pps_buf
,
&
misc
,
cr_fdset
);
ret
=
dump_task_core_all
(
p
id
,
item
->
core
[
0
],
&
pps_buf
,
&
misc
,
cr_fdset
);
if
(
ret
)
{
pr_err
(
"Dump core (pid: %d) failed with %d
\n
"
,
pid
,
ret
);
goto
err_cure
;
...
...
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