Marri Devender Rao | 7847960 | 2020-01-06 03:45:11 -0600 | [diff] [blame^] | 1 | #pragma once
|
| 2 |
|
| 3 | #include <cstdarg>
|
| 4 | namespace openpower
|
| 5 | {
|
| 6 | namespace pel
|
| 7 | {
|
| 8 | namespace 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 |
|
| 23 | void 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 | */
|
| 33 | void processBootErrorCallback(bool status);
|
| 34 |
|
| 35 | /**
|
| 36 | * @brief Reset trace log list
|
| 37 | */
|
| 38 | void 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 | */
|
| 47 | void addBootErrorCallbacks();
|
| 48 | } // namespace pel
|
| 49 | } // namespace openpower
|