summaryrefslogtreecommitdiffstats
path: root/storageaddsel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add inventory path metadata to host event log entryTom Joseph2017-07-251-19/+34
| | | | | | | | | | | | | | | | | | | | | | The ESEL data contains sensor number to related to the event. The generated code maps sensor number to inventory path. The inventory path is added as metadata to the log entry for the admin to figure out the inventory affected by the system event. The generated header for Host event exception type is generated in the org/open_power/Host/Event/error.hpp. Phosphor repositories should not include open power specific header files. The eventual plan to is to move the code to add ESEL to an OEM repo, till then we would check in the header file in the repo. TODO: openbmc/openbmc#1658 The elog-errors.hpp is checked in for the CI to pass. TODO: openbmc/openbmc#1772 issue would take care, so that CI passes without the checking in elog-errors.hpp. Resolves openbmc/openbmc#1920 Change-Id: I31d68de475ef84b8755c5de6d7ce6d311dd32214 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* sensorhandler: Refactor find_openbmc_path to check sensor map firstEmily Shaffer2017-06-061-2/+2
| | | | | Change-Id: I846d538643af77705d5160bf4d9127f758b5c749 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* storageaddesel: switch to 'report' error APIMarri Devender Rao2017-04-271-11/+2
| | | | | | | | | phosphor-logging now has an interface to avoid needing a try/catch to report an error in the same location it is discovered, so switch to using it. Change-Id: I3feb36e41e8dd18a279b34508f8967a4f74485e4 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Cater for change in exception variable namesMarri Devender Rao2017-04-121-1/+1
| | | | | Change-Id: I9c723dd8c1c411c297906fcce635e32b3d8428cc Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* error-log: catch sdbusplus exception typeDeepak Kodihalli2017-03-161-2/+2
| | | | | Change-Id: Ied012155c8382e1077521613a8a49d61c4becc6b Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Add null termination for eSEL dataTom Joseph2017-02-281-1/+3
| | | | | Change-Id: If55367f35cfcf35f0dff8da2d1e15865b702a5b2 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Import phosphor-logging header files from new directory.Saqib Khan2017-02-221-2/+2
| | | | | | | | | Phase2: Changing the phosphor-logging header files import from base dir to files under phosphor-logging folder. Once all projects import from the new dir, the files in the base dir will be deleted. Change-Id: If45e9d29056c66e2c4b03a6ca20580f30b69741f Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* add_sel: Remove deprecated calls to dbusAdriana Kobylak2017-02-161-53/+1
| | | | | | | | | The current add_sel dbus calls are failing, openbmc/openbmc#1111 Remove them as they are deprecated as the function already creates an elog error entry using the new logging interface. Change-Id: I3616496420b539bbb7ea5b3fe0c3841d655df238 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Create a SEL error logAdriana Kobylak2017-02-161-0/+23
| | | | | | | | Log the SEL data to the journal and call the commit interface to write the error log with the data. Change-Id: Ifcb842e37f2fdb14f80ab24651d565da05da47bf Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Correct compilation errorsMatthew Barth2017-01-251-5/+10
| | | | | | | | | | Fix compilation errors found with later gcc version during integration unit tests. Resolves openbmc/phosphor-host-ipmid#101 Change-Id: I35c5433f03521a877fd09748b8262d6172d21535 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Print failing object path after failed bus lookupBrad Bishop2016-10-061-1/+2
| | | | | Change-Id: I599d8297b4d2fd45831443685ea5b7d53f1515b6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Refactor the code related to Sensor handlingTom2016-09-231-5/+3
| | | | | | | | | The sensor related code is moved to sensorhandler.c. These changes were part of the ipmi daemon code and would have to replicated in RMCP daemon. The refactoring would get away with those changes. Change-Id: Ib9e1a1929282221e6f259e4a54502eea82f42939 Signed-off-by: Tom <tomjoseph@in.ibm.com>
* Ensure all tools are building with -Wall and -WerrorMatthew Barth2016-09-211-3/+3
| | | | | | | | Corrected resulting compiler errors from correctly adding -Wall & -Werror within configure.ac. Change-Id: Ia7aaafa83103322ad4b50171d62144624dd71e42 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* ipmid: Change .H -> .hppPatrick Williams2016-09-061-1/+1
| | | | | Change-Id: Ia1ed05a533736105909717b86f16274b30d36401 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Hard-coded service name replaced with call to ObjectMapperSergey Solomin2016-08-251-4/+11
| | | | | | | | | | | | | In the openbmc code, the dbus service name is hardcoded. The ObjectMapper provides a way to find out the service name by issuing a GetObject method call to the ObjectMapper. That functionality is implemented in mapper.c The output of the call to the mapper is a service name. Resolves openbmc/openbmc#319. Change-Id: I724a31ede6bdf3ae4b361e730857b1f2696a8966 Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
* Switch C++ source files to .cpp extensionMatthew Barth2016-08-081-0/+253
Change-Id: I495186b4afd58ec1e5d9d5c6472394f96541d17d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
OpenPOWER on IntegriCloud