blob: 91377f29cb8290042d329c4cb608b2fcc9eda311 [file] [log] [blame]
#include <cstdint>
#pragma once
namespace openpower::phal::dump
{
constexpr auto SBE_DUMP_TIMEOUT = 4 * 60; // Timeout in seconds
/** @brief Dump types supported by dump request */
enum class DumpType
{
SBE
};
/** @brief Structure for dump request parameters */
struct DumpParameters
{
uint32_t logId;
uint32_t unitId;
uint32_t timeout;
DumpType dumpType;
};
/**
* Request a dump from the dump manager
*
* Request a dump from the dump manager and register a monitor for observing
* the dump progress.
*
* @param dumpParameters Parameters for the dump request
*/
void requestDump(const DumpParameters& dumpParameters);
} // namespace openpower::phal::dump