Skip to content

Commit 636cac7

Browse files
authored
Merge pull request #55 from zhsj/proto
Add stats.proto to repo and regenerate with latest protoc-gen-go
2 parents f031138 + 820ae2e commit 636cac7

File tree

34 files changed

+92
-8729
lines changed

34 files changed

+92
-8729
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ test/test
22
test/piggie/piggie
33
test/phaul
44
image
5-
stats/stats.proto

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ stats/stats.proto:
4949
curl -sSL https://raw.githubusercontent.com/checkpoint-restore/criu/master/images/stats.proto -o $@
5050

5151
rpc/rpc.pb.go: rpc/rpc.proto
52-
protoc --go_out=. --go_opt=Mrpc/rpc.proto=rpc/ $^
52+
protoc --go_out=. --go_opt=M$^=rpc/ $^
5353

5454
stats/stats.pb.go: stats/stats.proto
55-
protoc --go_out=. $^
55+
protoc --go_out=. --go_opt=M$^=stats/ $^
5656

5757
vendor:
5858
GO111MODULE=on $(GO) mod tidy

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module github.com/checkpoint-restore/go-criu/v5
33
go 1.13
44

55
require (
6-
github.com/golang/protobuf v1.5.2
76
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c
8-
google.golang.org/protobuf v1.26.0
7+
google.golang.org/protobuf v1.27.1
98
)

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
2-
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
3-
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
42
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
53
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
64
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk=
75
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
86
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
97
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
108
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
11-
google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=
12-
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
9+
google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ=
10+
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=

rpc/rpc.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stats/stats.pb.go

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stats/stats.proto

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// SPDX-License-Identifier: MIT
2+
3+
syntax = "proto2";
4+
5+
// This one contains statistics about dump/restore process
6+
message dump_stats_entry {
7+
required uint32 freezing_time = 1;
8+
required uint32 frozen_time = 2;
9+
required uint32 memdump_time = 3;
10+
required uint32 memwrite_time = 4;
11+
12+
required uint64 pages_scanned = 5;
13+
required uint64 pages_skipped_parent = 6;
14+
required uint64 pages_written = 7;
15+
16+
optional uint32 irmap_resolve = 8;
17+
18+
required uint64 pages_lazy = 9;
19+
optional uint64 page_pipes = 10;
20+
optional uint64 page_pipe_bufs = 11;
21+
22+
optional uint64 shpages_scanned = 12;
23+
optional uint64 shpages_skipped_parent = 13;
24+
optional uint64 shpages_written = 14;
25+
}
26+
27+
message restore_stats_entry {
28+
required uint64 pages_compared = 1;
29+
required uint64 pages_skipped_cow = 2;
30+
31+
required uint32 forking_time = 3;
32+
required uint32 restore_time = 4;
33+
34+
optional uint64 pages_restored = 5;
35+
}
36+
37+
message stats_entry {
38+
optional dump_stats_entry dump = 1;
39+
optional restore_stats_entry restore = 2;
40+
}

vendor/github.com/golang/protobuf/AUTHORS

Lines changed: 0 additions & 3 deletions
This file was deleted.

vendor/github.com/golang/protobuf/CONTRIBUTORS

Lines changed: 0 additions & 3 deletions
This file was deleted.

vendor/github.com/golang/protobuf/LICENSE

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)