summaryrefslogtreecommitdiffstats
path: root/elog_watch.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Refactor to pass errors to watch through config YAMLMarri Devender Rao2019-01-221-8/+22
| | | | | | | | | | | Add errors to watch for through error YAML file Add support for checkstop error type Tested: Generating dumps for elog, core, checkstop type errors. Change-Id: Idd00ace2e3d0c472a74ec142e6d150e55e843a6f Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Enable clang code formatJayanth Othayoth2018-10-181-33/+31
| | | | | | Change-Id: Ib640ef7cea99ff505965182ec9900a2d53a8986e Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* elog_watch: Fix parsing of elog add requestsWilliam A. Kennington III2018-06-121-13/+8
| | | | | | | | | | | | | | | | | | | | Requests come in the form "oa{sa{sv}}". However, the way sdbusplus was interpreting the type of our message "a{oa{sa{sv}}}" since tuples are not allowed to consume multiple arguments during the read call as that would be ambiguous. This fixes the type issues. Prior to the change to sdbusplus that introduces error handling for the read calls, the sd_bus_message_{enter,exit}_container were failing during the read on the pair. Luckily this produces the expected result for the read and our old code was "working". This also cleans up an unnecessary string move. Tested: Builds and no longer produces errors on zaius when elogs are added. Change-Id: Ifc5394f3f361e8932c939376bd0bf5b4e3ca589c Signed-off-by: William A. Kennington III <wak@google.com>
* Add error handling for message parsingWilliam A. Kennington III2018-05-291-2/+23
| | | | | | | | | | Some of the signals we try and parse for error logs are not structured in the format we expect when parsing. When error logging is enabled in sdbusplus this causes the phosphor-dump-manager to crash. Fix this crashing by logging errors and ignoring the bad signals. Change-Id: Ieadcb7e95f622005382f3c4957bf1535e3bb1ef9 Signed-off-by: William A. Kennington III <wak@google.com>
* Enable Cereal class versioningVishwanatha Subbanna2017-10-051-0/+5
| | | | | Change-Id: Ib6d212e730d25eb14ceed5b5f3f222ee3b47b35c Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Enable support to handle InternalFailure type dump, during elog restoreJayanth Othayoth2017-09-141-2/+66
| | | | | | | Resolves openbmc/openbmc#2078 Change-Id: Iea47b9b7c0cd6cae21642057b21c4e99d85be1e8 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Capture dump when an error with the name InternalFailure is loggedJayanth Othayoth2017-09-121-0/+88
Change-Id: I2a362b674022dbe1ea8bfe16876d0416f87d0af1 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
OpenPOWER on IntegriCloud