14d779b2cSJayanth Othayoth #pragma once 24d779b2cSJayanth Othayoth 34d779b2cSJayanth Othayoth #include <libekb.H> 44d779b2cSJayanth Othayoth 54d779b2cSJayanth Othayoth #include <nlohmann/json.hpp> 64d779b2cSJayanth Othayoth 7*2544b419SPatrick Williams #include <cstdarg> 8*2544b419SPatrick Williams 94d779b2cSJayanth Othayoth namespace openpower 104d779b2cSJayanth Othayoth { 114d779b2cSJayanth Othayoth namespace pels 124d779b2cSJayanth Othayoth { 134d779b2cSJayanth Othayoth namespace phal 144d779b2cSJayanth Othayoth { 154d779b2cSJayanth Othayoth 164d779b2cSJayanth Othayoth using json = nlohmann::json; 174d779b2cSJayanth Othayoth using FFDCData = std::vector<std::pair<std::string, std::string>>; 184d779b2cSJayanth Othayoth 194d779b2cSJayanth Othayoth /** 204d779b2cSJayanth Othayoth * @brief Used to convert processed SBE FFDC FAPI format packets into 214d779b2cSJayanth Othayoth * PEL expected format. 224d779b2cSJayanth Othayoth * 2304b8ddd8SJayanth Othayoth * @param[in] ffdc FFDC data capturd by the HWP 244d779b2cSJayanth Othayoth * @param[out] pelJSONFmtCalloutDataList used to store collected callout 254d779b2cSJayanth Othayoth * data into pel expected format 264d779b2cSJayanth Othayoth * @param[out] ffdcUserData used to store additional ffdc user data to 274d779b2cSJayanth Othayoth * provided by the SBE FFDC packet. 284d779b2cSJayanth Othayoth * 294d779b2cSJayanth Othayoth * @return NULL 304d779b2cSJayanth Othayoth * 314d779b2cSJayanth Othayoth */ 324d779b2cSJayanth Othayoth void convertFAPItoPELformat(FFDC& ffdc, json& pelJSONFmtCalloutDataList, 334d779b2cSJayanth Othayoth FFDCData& ffdcUserData); 344d779b2cSJayanth Othayoth } // namespace phal 354d779b2cSJayanth Othayoth } // namespace pels 364d779b2cSJayanth Othayoth } // namespace openpower 37