pseq: Create dump on runtime pgood failure
Currently no dump is created when a power good failure occurs at
runtime. Add the call to create a dump.
Signed-off-by: Jim Wright <jlwright@us.ibm.com>
Change-Id: I1effbf13f0b2fd234deea96171efa289f9fa2380
diff --git a/phosphor-power-sequencer/src/power_sequencer_monitor.hpp b/phosphor-power-sequencer/src/power_sequencer_monitor.hpp
index e8b36fc..eb151ce 100644
--- a/phosphor-power-sequencer/src/power_sequencer_monitor.hpp
+++ b/phosphor-power-sequencer/src/power_sequencer_monitor.hpp
@@ -24,14 +24,14 @@
/**
* Create a base device object for power sequence monitoring.
- * @param[in] bus D-Bus bus object
+ * @param bus D-Bus bus object
*/
explicit PowerSequencerMonitor(sdbusplus::bus::bus& bus);
/**
* Logs an error using the D-Bus Create method.
- * @param[in] message Message property of the error log entry
- * @param[in] additionalData AdditionalData property of the error log entry
+ * @param message Message property of the error log entry
+ * @param additionalData AdditionalData property of the error log entry
*/
void logError(const std::string& message,
std::map<std::string, std::string>& additionalData);
@@ -39,8 +39,8 @@
/**
* Analyzes the device for errors when the device is
* known to be in an error state. A log will be created.
- * @param[in] timeout if the failure state was determined by timing out
- * @param[in] powerSupplyError The power supply error to log. A default
+ * @param timeout if the failure state was determined by timing out
+ * @param powerSupplyError The power supply error to log. A default
* std:string, i.e. empty string (""), is passed when there is no power
* supply error to log.
*/
@@ -51,6 +51,11 @@
* The D-Bus bus object
*/
sdbusplus::bus::bus& bus;
+
+ /*
+ * Create a BMC Dump
+ */
+ void createBmcDump();
};
} // namespace phosphor::power::sequencer