|
@@ -30,6 +30,7 @@
|
|
#include "sysemu/watchdog.h"
|
|
#include "sysemu/watchdog.h"
|
|
#include "hw/nmi.h"
|
|
#include "hw/nmi.h"
|
|
#include "qemu/help_option.h"
|
|
#include "qemu/help_option.h"
|
|
|
|
+#include "trace.h"
|
|
|
|
|
|
static WatchdogAction watchdog_action = WATCHDOG_ACTION_RESET;
|
|
static WatchdogAction watchdog_action = WATCHDOG_ACTION_RESET;
|
|
|
|
|
|
@@ -43,6 +44,8 @@ WatchdogAction get_watchdog_action(void)
|
|
*/
|
|
*/
|
|
void watchdog_perform_action(void)
|
|
void watchdog_perform_action(void)
|
|
{
|
|
{
|
|
|
|
+ trace_watchdog_perform_action(watchdog_action);
|
|
|
|
+
|
|
switch (watchdog_action) {
|
|
switch (watchdog_action) {
|
|
case WATCHDOG_ACTION_RESET: /* same as 'system_reset' in monitor */
|
|
case WATCHDOG_ACTION_RESET: /* same as 'system_reset' in monitor */
|
|
qapi_event_send_watchdog(WATCHDOG_ACTION_RESET);
|
|
qapi_event_send_watchdog(WATCHDOG_ACTION_RESET);
|
|
@@ -89,4 +92,5 @@ void watchdog_perform_action(void)
|
|
void qmp_watchdog_set_action(WatchdogAction action, Error **errp)
|
|
void qmp_watchdog_set_action(WatchdogAction action, Error **errp)
|
|
{
|
|
{
|
|
watchdog_action = action;
|
|
watchdog_action = action;
|
|
|
|
+ trace_watchdog_set_action(watchdog_action);
|
|
}
|
|
}
|