Linux Watchdog driver development
 help / color / mirror / Atom feed
* [PATCH 0/2] watchdog: pretimeout: Allow building dump governor as module
@ 2026-07-30 22:00 Mayank Rungta via B4 Relay
  2026-07-30 22:00 ` [PATCH 1/2] nmi: Export CPU backtrace APIs for loadable modules Mayank Rungta via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Mayank Rungta via B4 Relay @ 2026-07-30 22:00 UTC (permalink / raw)
  To: Andrew Morton, Wim Van Sebroeck, Guenter Roeck
  Cc: Tzung-Bi Shih, Douglas Anderson, linux-kernel, linux-watchdog,
	Mayank Rungta

All other watchdog pretimeout governors (noop, panic) can be built as
loadable modules. However the "dump" pretimeout governor is restricted
to built-in code because it calls trigger_all_cpu_backtrace(), which
relies on arch_trigger_cpumask_backtrace(), an arch specific helper that
is not exported to loadable modules.

This 2-patch series allows building the dump governor as a module (=m):
1) Export cpumask_backtrace() in lib/nmi_backtrace.c.
2) Convert CONFIG_WATCHDOG_PRETIMEOUT_GOV_DUMP from bool to tristate.

Signed-off-by: Mayank Rungta <mrungta@google.com>
---
Mayank Rungta (2):
      nmi: Export CPU backtrace APIs for loadable modules
      watchdog: pretimeout: Convert dump pretimeout governor to tristate

 drivers/watchdog/Kconfig |  4 ++--
 include/linux/nmi.h      | 10 ++++++----
 lib/nmi_backtrace.c      |  7 +++++++
 3 files changed, 15 insertions(+), 6 deletions(-)
---
base-commit: 3fe08b9796f36ef437ab9328e7dd1e5ff2d66603
change-id: 20260728-export-cpu-backtrace-apis-136d3b819377

Best regards,
-- 
Mayank Rungta <mrungta@google.com>



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-08-07  3:50 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-30 22:00 [PATCH 0/2] watchdog: pretimeout: Allow building dump governor as module Mayank Rungta via B4 Relay
2026-07-30 22:00 ` [PATCH 1/2] nmi: Export CPU backtrace APIs for loadable modules Mayank Rungta via B4 Relay
2026-07-31  1:54   ` Doug Anderson
2026-08-06 21:40   ` Guenter Roeck
2026-08-06 23:44   ` Andrew Morton
2026-08-07  3:50   ` Guenter Roeck
2026-07-30 22:00 ` [PATCH 2/2] watchdog: pretimeout: Convert dump pretimeout governor to tristate Mayank Rungta via B4 Relay
2026-07-31  1:55   ` Doug Anderson
2026-08-01 12:38   ` Tzung-Bi Shih
2026-08-06 21:41   ` Guenter Roeck
2026-08-06 23:44   ` Andrew Morton
2026-08-07  3:50   ` Guenter Roeck
2026-07-30 22:50 ` [PATCH 0/2] watchdog: pretimeout: Allow building dump governor as module Andrew Morton
2026-07-30 23:39   ` Mayank Rungta
2026-07-31 21:01     ` Andrew Morton
2026-07-31 21:19       ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox