summaryrefslogtreecommitdiffstats
path: root/elog_serialize.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add .clang-formatPatrick Venture2018-10-261-22/+21
| | | | | Change-Id: I2c36b7886a25d0b235693b0776019d29608e1d52 Signed-off-by: Patrick Venture <venture@google.com>
* Add the BMC code version to error logsMatt Spinler2018-05-011-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | Add the xyz.openbmc_project.Software.Version interface to the elog entries. This allows a user to know what BMC code level was running when the error was created. The level is persisted along with the other elog fields. If this code is flashed on a system that was running older code, and there were existing error logs, the version property will be left empty in the restored log entries. Older code is still able to restore logs created by this code as the version property is at the end of the serialized data and so is just ignored by Cereal. Resolves openbmc/openbmc#3133 Tested: Check that new error logs have the code level, and that restarting phosphor-log-manager preserves that property on the existing logs. Various incantations of running the older code with logs created by this code, and running this code with logs created by older code. Change-Id: I682aa3bf97c8352ce6dda05dfdf55d33173de891 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Enable Cereal class versioningVishwanatha Subbanna2017-10-111-6/+28
| | | | | | | | | Cereal class versioning helps to handle data de-serialization across different class versions that differ in the way, a particular data is serialized. Change-Id: Ica01c4cb0c213e0dca8824fcfcfaa5cb43c5bc2e Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* phosphor-log-manager: Fix for deserialize cereal exceptionJayanth Othayoth2017-09-201-6/+17
| | | | | | | | | | | This commit provides a fix for an issue in which the cereal deserialize() would crash the phosphor-log-manager incase persistence file is empty in restore path. Resolves openbmc/openbmc#2337 Change-Id: Id9d8c066d0dc50cba62a67060c1ee8d43d046ff1 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Move serialization template functionsDeepak Kodihalli2017-06-251-0/+44
| | | | | | | | Move serialization template functions from elog_serialize.hpp to elog.serialize.cpp, since they are called only within the cpp. Change-Id: I8df216e1d4a745d1386fc310fc5d4d9535a8b7c3 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Persist error d-bus objectsDeepak Kodihalli2017-06-261-0/+35
Use Cereal to implement serialization and de-serialization of properties of error d-bus objects. Serialize and persist error d-bus objects as they are put on the bus. De-serialize and restore them (if persistent ones exist) when phosphor-log-manager starts up. Change-Id: I1f5df1abbe74bfdb86e3e82a78ff7115e90e2112 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
OpenPOWER on IntegriCloud