PEL: API to convert FAPI based data to PEL format
API support to convert processed SBE FFDC FAPI format packets
into PEL expected format.
This function is ported from openpower-proc-control and
customised to make independent function.
Added pdbg and device tree libraries to support phal based
device tree support.
Tested: Manually verified.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I8afdb5861be6b129314621eea342bee5eaae82d7
diff --git a/extensions/openpower-pels/entry_points.cpp b/extensions/openpower-pels/entry_points.cpp
index 4be961b..1b14879 100644
--- a/extensions/openpower-pels/entry_points.cpp
+++ b/extensions/openpower-pels/entry_points.cpp
@@ -20,6 +20,12 @@
#include "manager.hpp"
#include "pldm_interface.hpp"
+#include <phosphor-logging/log.hpp>
+
+#ifdef SBE_FFDC_SUPPORTED
+#include <libpdbg.h>
+#endif
+
namespace openpower
{
namespace pels
@@ -51,6 +57,14 @@
manager = std::make_unique<Manager>(logManager, std::move(dataIface),
std::move(logger));
#endif
+
+#ifdef SBE_FFDC_SUPPORTED
+ if (!pdbg_targets_init(NULL))
+ {
+ log<level::ERR>("pdbg_targets_init failed");
+ throw std::runtime_error("pdbg target initialization failed");
+ }
+#endif
}
REGISTER_EXTENSION_FUNCTION(pelStartup)