1syntax = "proto2";
2option optimize_for = LITE_RUNTIME;
3package storaged_proto;
4option java_package = "com.android.storaged.proto";
5option java_outer_classname = "Storaged";
6
7message IOUsage {
8  optional uint64 rd_fg_chg_on  = 1;
9  optional uint64 rd_fg_chg_off = 2;
10  optional uint64 rd_bg_chg_on  = 3;
11  optional uint64 rd_bg_chg_off = 4;
12  optional uint64 wr_fg_chg_on  = 5;
13  optional uint64 wr_fg_chg_off = 6;
14  optional uint64 wr_bg_chg_on  = 7;
15  optional uint64 wr_bg_chg_off = 8;
16}
17
18message TaskIOUsage {
19  optional string task_name = 1;
20  optional IOUsage ios = 2;
21}
22
23message UidRecord {
24  optional string uid_name = 1;
25  optional uint32 user_id = 2;
26  optional IOUsage uid_io = 3;
27  repeated TaskIOUsage task_io = 4;
28}
29
30message UidIORecords {
31  optional uint64 start_ts = 1;
32  repeated UidRecord entries = 2;
33}
34
35message UidIOItem {
36  optional uint64 end_ts = 1;
37  optional UidIORecords records = 2;
38}
39
40message UidIOUsage {
41  repeated UidIOItem uid_io_items = 2;
42}
43
44message IOPerfHistory {
45  optional uint64 day_start_sec = 1;
46  repeated uint32 recent_perf = 2;
47  optional uint32 nr_samples = 3;
48  repeated uint32 daily_perf = 4;
49  optional uint32 nr_days = 5;
50  repeated uint32 weekly_perf = 6;
51  optional uint32 nr_weeks = 7;
52}
53
54message StoragedProto {
55  optional uint32 crc = 1;
56  optional uint32 version = 2;
57  optional UidIOUsage uid_io_usage = 3;
58  optional IOPerfHistory perf_history = 4;
59  optional bytes padding = 5;
60}
61