blob: 0905184467c636fbf3fc59bcfcd67ee1f0f281ab [file] [log] [blame]
Jayanth Othayoth4d779b22021-06-03 05:45:13 -05001#pragma once
2
3#include <libekb.H>
4
Jayanth Othayoth4d779b22021-06-03 05:45:13 -05005#include <nlohmann/json.hpp>
6
Patrick Williams2544b412022-10-04 08:41:06 -05007#include <cstdarg>
8
Jayanth Othayoth4d779b22021-06-03 05:45:13 -05009namespace openpower
10{
11namespace pels
12{
13namespace phal
14{
15
16using json = nlohmann::json;
17using 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 Othayoth04b8ddd2022-06-30 04:07:36 -050023 * @param[in] ffdc FFDC data capturd by the HWP
Jayanth Othayoth4d779b22021-06-03 05:45:13 -050024 * @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 */
32void convertFAPItoPELformat(FFDC& ffdc, json& pelJSONFmtCalloutDataList,
33 FFDCData& ffdcUserData);
34} // namespace phal
35} // namespace pels
36} // namespace openpower