From 6edc8a0406bc31fc24f46f15b4db6f7ed0453f8a Mon Sep 17 00:00:00 2001 From: Tom Joseph Date: Fri, 30 Jun 2017 18:52:56 +0530 Subject: Convert a log entry into a SEL record 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 --- selutility.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'selutility.hpp') diff --git a/selutility.hpp b/selutility.hpp index 83ff0fd..573e89b 100644 --- a/selutility.hpp +++ b/selutility.hpp @@ -43,6 +43,15 @@ struct GetSELEntryResponse uint8_t eventData3; //!< Event Data 3. } __attribute__((packed)); +/** @brief Convert logging entry to SEL + * + * @param[in] objPath - DBUS object path of the logging entry. + * + * @return On success return the response of Get SEL entry command. + */ +GetSELEntryResponse convertLogEntrytoSEL(const std::string& objPath); + + namespace internal { -- cgit v1.2.1