Jayanth Othayoth | 4d779b2 | 2021-06-03 05:45:13 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <libekb.H> |
| 4 | |
| 5 | #include <cstdarg> |
| 6 | #include <nlohmann/json.hpp> |
| 7 | |
| 8 | namespace openpower |
| 9 | { |
| 10 | namespace pels |
| 11 | { |
| 12 | namespace phal |
| 13 | { |
| 14 | |
| 15 | using json = nlohmann::json; |
| 16 | using FFDCData = std::vector<std::pair<std::string, std::string>>; |
| 17 | |
| 18 | /** |
| 19 | * @brief Used to convert processed SBE FFDC FAPI format packets into |
| 20 | * PEL expected format. |
| 21 | * |
Jayanth Othayoth | 04b8ddd | 2022-06-30 04:07:36 -0500 | [diff] [blame^] | 22 | * @param[in] ffdc FFDC data capturd by the HWP |
Jayanth Othayoth | 4d779b2 | 2021-06-03 05:45:13 -0500 | [diff] [blame] | 23 | * @param[out] pelJSONFmtCalloutDataList used to store collected callout |
| 24 | * data into pel expected format |
| 25 | * @param[out] ffdcUserData used to store additional ffdc user data to |
| 26 | * provided by the SBE FFDC packet. |
| 27 | * |
| 28 | * @return NULL |
| 29 | * |
| 30 | */ |
| 31 | void convertFAPItoPELformat(FFDC& ffdc, json& pelJSONFmtCalloutDataList, |
| 32 | FFDCData& ffdcUserData); |
| 33 | } // namespace phal |
| 34 | } // namespace pels |
| 35 | } // namespace openpower |