diff options
Diffstat (limited to 'storaged/storaged.proto')
-rw-r--r-- | storaged/storaged.proto | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/storaged/storaged.proto b/storaged/storaged.proto new file mode 100644 index 000000000..52228468f --- /dev/null +++ b/storaged/storaged.proto @@ -0,0 +1,42 @@ +syntax = "proto2"; +option optimize_for = LITE_RUNTIME; +package storaged_proto; +option java_package = "com.android.storaged.proto"; +option java_outer_classname = "Storaged"; + +message IOUsage { + optional uint64 rd_fg_chg_on = 1; + optional uint64 rd_fg_chg_off = 2; + optional uint64 rd_bg_chg_on = 3; + optional uint64 rd_bg_chg_off = 4; + optional uint64 wr_fg_chg_on = 5; + optional uint64 wr_fg_chg_off = 6; + optional uint64 wr_bg_chg_on = 7; + optional uint64 wr_bg_chg_off = 8; +} + +message TaskIOUsage { + optional string task_name = 1; + optional IOUsage ios = 2; +} + +message UidRecord { + optional string uid_name = 1; + optional IOUsage uid_io = 2; + repeated TaskIOUsage task_io = 3; +} + +message UidIORecords { + optional uint64 start_ts = 1; + repeated UidRecord entries = 2; +} + +message UidIOItem { + optional uint64 end_ts = 1; + optional UidIORecords records = 2; +} + +message UidIOHistoryProto { + optional uint32 crc = 1; + repeated UidIOItem items = 2; +} |