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