Jayanth Othayoth | 21a889f | 2021-10-07 06:53:40 -0500 | [diff] [blame] | 1 | #include <cstdint> |
| 2 | |
| 3 | #pragma once |
| 4 | |
| 5 | namespace openpower::phal::dump |
| 6 | { |
| 7 | |
| 8 | constexpr auto SBE_DUMP_TIMEOUT = 4 * 60; // Timeout in seconds |
| 9 | |
| 10 | /** @brief Dump types supported by dump request */ |
| 11 | enum class DumpType |
| 12 | { |
| 13 | SBE |
| 14 | }; |
| 15 | |
| 16 | /** @brief Structure for dump request parameters */ |
| 17 | struct DumpParameters |
| 18 | { |
| 19 | uint32_t logId; |
| 20 | uint32_t unitId; |
| 21 | uint32_t timeout; |
| 22 | DumpType dumpType; |
| 23 | }; |
| 24 | |
| 25 | /** |
| 26 | * Request a dump from the dump manager |
| 27 | * |
| 28 | * Request a dump from the dump manager and register a monitor for observing |
| 29 | * the dump progress. |
| 30 | * |
| 31 | * @param dumpParameters Parameters for the dump request |
| 32 | */ |
| 33 | void requestDump(const DumpParameters& dumpParameters); |
| 34 | |
| 35 | } // namespace openpower::phal::dump |