blob: b132b8f10062ae80a82f79151a6488d3c80baaf4 [file] [log] [blame]
Brad Bishopf6783cd2020-10-27 19:25:09 -04001#pragma once
2
3#include <cstdarg>
4namespace openpower
5{
6namespace pel
7{
8namespace detail
9{
10
11/**
12 * @brief Process debug traces
13 *
14 * Function adds debug traces to the list so that it will be added to the
15 * PEL upon failure
16 *
17 * @param[in] private_data - pointer to private data, unused now
18 * @param[in] fmt - format for variable list arguments
19 * @param[in] ap - object of va_list, holds information needed to retrieve
20 * the additional arguments
21 */
22
23void processLogTraceCallback(void* private_data, const char* fmt, va_list ap);
24
25/**
26 * @brief Process boot failure/success status
27 *
28 * If status is success log traces are cleared else used in the
29 * creation of failure
30 *
31 * @param[in] status - Boot execution status
32 */
33void processBootErrorCallback(bool status);
34
35/**
36 * @brief Reset trace log list
37 */
38void reset();
39} // namespace detail
40
41/**
42 * @brief Add callbacks for debug traces and boot errors
43 *
44 * This function adds callback for debug traces and for boot
45 * errors
46 */
47void addBootErrorCallbacks();
48} // namespace pel
49} // namespace openpower