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