Ben Tyner | 7029e52 | 2021-08-09 19:18:24 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | namespace attn |
| 4 | { |
| 5 | |
| 6 | /** @brief Dump types supported by dump request */ |
| 7 | enum class DumpType |
| 8 | { |
| 9 | Hostboot, |
Ben Tyner | 7f6ce6a | 2021-08-17 19:40:00 -0500 | [diff] [blame] | 10 | Hardware, |
| 11 | SBE |
Ben Tyner | 7029e52 | 2021-08-09 19:18:24 -0500 | [diff] [blame] | 12 | }; |
| 13 | |
| 14 | /** @brief Structure for dump request parameters */ |
| 15 | class DumpParameters |
| 16 | { |
| 17 | public: |
| 18 | uint32_t logId; |
| 19 | uint32_t unitId; |
| 20 | DumpType dumpType; |
| 21 | }; |
| 22 | |
| 23 | /** |
| 24 | * Request a dump from the dump manager |
| 25 | * |
| 26 | * Request a dump from the dump manager and register a monitor for observing |
| 27 | * the dump progress. |
| 28 | * |
| 29 | * @param dumpParameters Parameters for the dump request |
| 30 | */ |
| 31 | void requestDump(const DumpParameters& dumpParameters); |
| 32 | |
| 33 | } // namespace attn |