summaryrefslogtreecommitdiff
path: root/drivers/watchdog/watchdog_core.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-10-21 12:25:39 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-10-21 12:25:39 -0700
commit4f1e0c18bc8324ae05646c34759fd8dbe87f6582 (patch)
tree6705e3002fb3dc2cec6bc9e9a27d9647b9373f63 /drivers/watchdog/watchdog_core.c
parente35184f321518acadb681928a016da21a9a20c13 (diff)
parente25b091bed4946078c0998e4be77bc56824a9adf (diff)
downloadlinux-4f1e0c18bc8324ae05646c34759fd8dbe87f6582.tar.gz
linux-4f1e0c18bc8324ae05646c34759fd8dbe87f6582.tar.bz2
linux-4f1e0c18bc8324ae05646c34759fd8dbe87f6582.zip
Merge tag 'linux-watchdog-6.1-rc2' of git://www.linux-watchdog.org/linux-watchdog
Pull watchdog updates from Wim Van Sebroeck: - Add tracing events for the most common watchdog events * tag 'linux-watchdog-6.1-rc2' of git://www.linux-watchdog.org/linux-watchdog: watchdog: Add tracing events for the most usual watchdog events
Diffstat (limited to 'drivers/watchdog/watchdog_core.c')
-rw-r--r--drivers/watchdog/watchdog_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/watchdog/watchdog_core.c b/drivers/watchdog/watchdog_core.c
index 3fe8a7edc252..c777a612d932 100644
--- a/drivers/watchdog/watchdog_core.c
+++ b/drivers/watchdog/watchdog_core.c
@@ -38,6 +38,9 @@
#include "watchdog_core.h" /* For watchdog_dev_register/... */
+#define CREATE_TRACE_POINTS
+#include <trace/events/watchdog.h>
+
static DEFINE_IDA(watchdog_ida);
static int stop_on_reboot = -1;
@@ -163,6 +166,7 @@ static int watchdog_reboot_notifier(struct notifier_block *nb,
int ret;
ret = wdd->ops->stop(wdd);
+ trace_watchdog_stop(wdd, ret);
if (ret)
return NOTIFY_BAD;
}