blob: f503674eedfbb5db36d89273c65f2603abe74dab [file] [log] [blame]
Shantappa Teekappanavar1ac61622021-06-22 19:07:29 -05001#include <watchdog_common.hpp>
2#include <watchdog_logging.hpp>
3
4namespace watchdog
5{
6namespace dump
7{
8
9void triggerHostbootDump(const uint32_t timeout)
10{
11 constexpr auto HOST_STATE_DIAGNOSTIC_MODE =
12 "obmc-host-diagnostic-mode@0.target";
13 constexpr auto HOST_STATE_QUIESCE_TGT = "obmc-host-quiesce@0.target";
14
15 // Put system into diagnostic mode
16 transitionHost(HOST_STATE_DIAGNOSTIC_MODE);
17
Shantappa Teekappanavara1ea5e52021-08-24 16:30:30 -050018 eventWatchdogTimeout(timeout);
Shantappa Teekappanavar1ac61622021-06-22 19:07:29 -050019
20 // Put system into quiesce state
21 transitionHost(HOST_STATE_QUIESCE_TGT);
22}
23
24} // namespace dump
25} // namespace watchdog