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
2a925722
Commit
2a925722
authored
Dec 06, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show: Show itimers with std pb showing helper
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
0026b536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
31 deletions
+1
-31
cr-show.c
cr-show.c
+1
-31
No files found.
cr-show.c
View file @
2a925722
...
@@ -229,39 +229,9 @@ void show_sigacts(int fd_sigacts, struct cr_options *o)
...
@@ -229,39 +229,9 @@ void show_sigacts(int fd_sigacts, struct cr_options *o)
pb_show_plain
(
fd_sigacts
,
PB_SIGACT
);
pb_show_plain
(
fd_sigacts
,
PB_SIGACT
);
}
}
static
void
show_itimer
(
char
*
n
,
ItimerEntry
*
ie
)
{
pr_msg
(
"%s: int %lu.%lu val %lu.%lu
\n
"
,
n
,
(
unsigned
long
)
ie
->
isec
,
(
unsigned
long
)
ie
->
iusec
,
(
unsigned
long
)
ie
->
vsec
,
(
unsigned
long
)
ie
->
vusec
);
}
void
show_itimers
(
int
fd
,
struct
cr_options
*
o
)
void
show_itimers
(
int
fd
,
struct
cr_options
*
o
)
{
{
ItimerEntry
*
ie
;
pb_show_plain_pretty
(
fd
,
PB_ITIMERS
,
"1:%Lu 2:%Lu 3:%Lu 4:%Lu"
);
int
ret
;
pr_img_head
(
CR_FD_ITIMERS
);
ret
=
pb_read_one
(
fd
,
&
ie
,
PB_ITIMERS
);
if
(
ret
<
0
)
goto
out
;
show_itimer
(
"real"
,
ie
);
itimer_entry__free_unpacked
(
ie
,
NULL
);
ret
=
pb_read_one
(
fd
,
&
ie
,
PB_ITIMERS
);
if
(
ret
<
0
)
goto
out
;
show_itimer
(
"virt"
,
ie
);
itimer_entry__free_unpacked
(
ie
,
NULL
);
ret
=
pb_read_one
(
fd
,
&
ie
,
PB_ITIMERS
);
if
(
ret
<
0
)
goto
out
;
show_itimer
(
"prof"
,
ie
);
itimer_entry__free_unpacked
(
ie
,
NULL
);
out:
pr_img_tail
(
CR_FD_ITIMERS
);
}
}
void
show_creds
(
int
fd
,
struct
cr_options
*
o
)
void
show_creds
(
int
fd
,
struct
cr_options
*
o
)
...
...
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