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/util.hpp b/subprojects/metrics-ipmi-blobs/util.hpp
index 642e0f2..f3ad222 100644
--- a/subprojects/metrics-ipmi-blobs/util.hpp
+++ b/subprojects/metrics-ipmi-blobs/util.hpp
@@ -55,4 +55,12 @@
char controlCharsToSpace(char c);
std::string trimStringRight(std::string_view s);
+struct EccCounts
+{
+ int32_t correctableErrCount;
+ int32_t uncorrectableErrCount;
+};
+
+bool getECCErrorCounts(EccCounts& eccCounts);
+
} // namespace metric_blob