summaryrefslogtreecommitdiffstats
path: root/selutility.hpp
Commit message (Collapse)AuthorAgeFilesLines
* storagehandler: move get & reserve SEL to new APIjayaprakash Mutyala2019-07-251-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrite "Get sel info & Reserve SEL" commands to use the new API. Tested: 1. verified ipmitool sel info is same both before and after the changes Command: ipmitool sel info Output: SEL Information Version : 1.5 (v1.5, v2 compliant) Entries : 0 Free Space : 65535 bytes or more Percent Used : unknown Last Add Time : Not Available Last Del Time : Not Available Overflow : false Supported Cmds : 'Delete' 'Reserve' Command: ipmitool raw 0x0a 0x40 Output: 51 00 00 ff ff ff ff ff ff ff ff ff ff 0a 2. verfied the Reserve SEL command ipmitool raw 0x0a 0x42 01 00 ipmitool raw 0x0a 0x42 02 00 Change-Id: I37d602293066274a3fc417ad7e59cea3c73315f7 Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com> Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
* remove usage of sdbusplus::message::variantVernon Mauery2019-05-141-2/+2
| | | | | | | | | | | sdbusplus has had its alias of std::variant in place for long enough. This changes all ipmid references to use std::variant directly instead of the sdbusplus alias. Tested-by: building and running ipmid Change-Id: Id5b4136d4589aa598815edd3ef4202e64a7698e2 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* storagehandler: move Clear SEL to new IPMI APIPradeep Kumar2019-05-071-13/+0
| | | | | | | | | | | | | | | | | Rewritten "Clear SEL" command to use the newly introduced IPMI provider API. Tested: verified operation of clear SEL, and queried the sel list before & after clear SEL execution. ipmitool raw 0x0a 0x47 0x08 0x00 0x43 0x4c 0x52 0x0 01 // response Change-Id: Id8b8fa351c9d42632f71ce3445a63491b8ef4d16 Signed-off-by: Pradeep Kumar <pradeep1x.kumar@intel.com> Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* storagehandler: move delete SEL to new APIPradeep Kumar2019-05-031-10/+0
| | | | | | | | | | | | | | | Rewritten "Delete SEL" command to use the newly introduced IPMI provider API. Tested: Verified the behavior to be same as previous change. ipmitool sel delete 5 Unable to delete entry 5: Requested sensor, data, or record not found Change-Id: I3b40be056ed1c9b3bb5ac75387c694abe16403b5 Signed-off-by: Pradeep Kumar <pradeep1x.kumar@intel.com> Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* move types.hpp to ipmid/types.hpp for exportVernon Mauery2019-03-251-2/+1
| | | | | | | | | | types.hpp is required by utility.hpp, which is exported, so it needs to be exported as well. This moves it to the include/libipmid directory, changes the Makefile to export it, and changes all the files that include it so it can be found in the right place. Change-Id: I30ec365446e4de466c266ec4faa327478460ec05 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Fix compile error with g++ 7.3Yong Li2018-10-051-0/+1
| | | | | | | | | | Get the below error message when compiling with g++ 7.3: selutility.hpp:131:6: error: 'chrono' in namespace 'std' does not name a type Change the include order to fix this issue Change-Id: Ieaac302dd2e411a71736cbbe3f92431e30f3f5ea Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
* add .clang-formatPatrick Venture2018-09-071-35/+36
| | | | | Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5 Signed-off-by: Patrick Venture <venture@google.com>
* Add typedef for Property nameTom Joseph2017-07-191-2/+8
| | | | | Change-Id: I5bb95bc63d33144360bc0bd147cb772622a87cda Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add API to Read the DBUS logging entry object pathsTom Joseph2017-07-191-0/+16
| | | | | Change-Id: Ib1a9693dea5fa614fe3e4952f32778d8dde225d4 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add Clear SEL commandTom Joseph2017-07-191-0/+17
| | | | | Change-Id: I35b07e0bf1012d4b660d10cf17a47318f3c4e6e2 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add Delete SEL entry commandTom Joseph2017-07-191-0/+10
| | | | | Change-Id: Iabeaca4b5057ef1bae44cb6d30704de3ce2f1269 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add Get SEL entry commandTom Joseph2017-07-191-0/+17
| | | | | Change-Id: I09983a127c7c2817a0ebb6d64ffb2a9585dcd235 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add Get SEL Info commandTom Joseph2017-07-191-0/+18
| | | | | Change-Id: I8caa38ee461d6c570a6d7ab73376eb6aea701391 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Get the timestamp from the log entryTom Joseph2017-07-191-1/+9
| | | | | Change-Id: Id00f6e1e6f65c17babc5d06abe1b9fc39a4de8b8 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Convert a log entry into a SEL recordTom Joseph2017-07-081-0/+9
| | | | | | | | | | | | Check the DBUS logging entry for callout associations, if there is a mapping between the inventory path and sensor number then populate the SEL record. Otherwise log a SEL against the sytem event sensor. Resolves openbmc/openbmc#1516 Change-Id: I516bdac70cf39260af1744a9cdb118d763009bd5 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Create IPMI SEL record from Logging DBUS EntryTom Joseph2017-07-081-0/+66
The Log Id, resolved field and the timestamp is read from the DBUS entry and mapped to the SEL record. The remaining fields are populated from the generated code which maps an association to the sensor number. Change-Id: I89c3862cf35efa1b9fb86de734431c8141143fb7 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
OpenPOWER on IntegriCloud