kernel: modules: add lkdtm module
authorBrian Norris <computersforpeace@gmail.com>
Fri, 27 Jan 2023 20:53:32 +0000 (12:53 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 3 Feb 2023 12:48:11 +0000 (13:48 +0100)
Useful for debugging panic/error handling, crash logging, and more.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
package/kernel/linux/modules/other.mk

index c5f944ed3194b595680451f9c3a5ef70e0c56e18..2bd15dfe67e1a6c160df6bfc9490e396548fea49 100644 (file)
@@ -243,6 +243,22 @@ endef
 $(eval $(call KernelPackage,gpio-f7188x))
 
 
+define KernelPackage/lkdtm
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Linux Kernel Dump Test Tool Module
+  KCONFIG:=CONFIG_LKDTM
+  FILES:=$(LINUX_DIR)/drivers/misc/lkdtm/lkdtm.ko
+  AUTOLOAD:=$(call AutoProbe,lkdtm)
+endef
+
+define KernelPackage/lkdtm/description
+ This module enables testing of the different dumping mechanisms by inducing
+ system failures at predefined crash points.
+endef
+
+$(eval $(call KernelPackage,lkdtm))
+
+
 define KernelPackage/pinctrl-mcp23s08
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Microchip MCP23xxx I/O expander