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
729ea690
Commit
729ea690
authored
Aug 11, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stats: Introduce protobuf message for restore stats
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
9bb54501
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
stats.proto
protobuf/stats.proto
+4
-0
stats.c
stats.c
+5
-0
No files found.
protobuf/stats.proto
View file @
729ea690
...
...
@@ -10,6 +10,10 @@ message dump_stats_entry {
required
uint64
pages_written
=
7
;
}
message
restore_stats_entry
{
}
message
stats_entry
{
optional
dump_stats_entry
dump
=
1
;
optional
restore_stats_entry
restore
=
2
;
}
stats.c
View file @
729ea690
...
...
@@ -81,6 +81,7 @@ void write_stats(int what)
{
StatsEntry
stats
=
STATS_ENTRY__INIT
;
DumpStatsEntry
ds_entry
=
DUMP_STATS_ENTRY__INIT
;
RestoreStatsEntry
rs_entry
=
RESTORE_STATS_ENTRY__INIT
;
char
*
name
;
int
fd
;
...
...
@@ -98,6 +99,10 @@ void write_stats(int what)
ds_entry
.
pages_written
=
dstats
->
counts
[
CNT_PAGES_WRITTEN
];
name
=
"dump"
;
}
else
if
(
what
==
RESTORE_STATS
)
{
stats
.
restore
=
&
rs_entry
;
name
=
"restore"
;
}
else
return
;
...
...
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