metrics-ipmi-blobs: Support ECC Error Counts

Export the ECC Error Cournter from
http://github.com/openbmc/phosphor-ecc to ipmi blob.

Tested:
The blob output is updated if MemoryECC dbus object exists compared to
the blob output if MemoryECC doesn't exists.

Change-Id: I2c63dbcd0970afc587f5c2ee01f8c261909f0b08
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/subprojects/metrics-ipmi-blobs/metricblob.proto b/subprojects/metrics-ipmi-blobs/metricblob.proto
index 9842692..4d3038f 100644
--- a/subprojects/metrics-ipmi-blobs/metricblob.proto
+++ b/subprojects/metrics-ipmi-blobs/metricblob.proto
@@ -61,6 +61,11 @@
   repeated StringEntry entries = 10;
 }
 
+message BmcECCMetric {
+  int32 correctable_error_count = 1;
+  int32 uncorrectable_error_count = 2;
+}
+
 message BmcMetricSnapshot {
   BmcStringTable string_table = 1;
   BmcMemoryMetric memory_metric = 2;
@@ -68,4 +73,7 @@
   BmcDiskSpaceMetric storage_space_metric = 4;
   BmcProcStatMetric procstat_metric = 5;
   BmcFdStatMetric fdstat_metric = 6;
+  reserved 7;
+  reserved 8;
+  BmcECCMetric ecc_metric = 9;
 }