Test module to generate lockups

modulename: test_lockup.ko

configname: CONFIG_TEST_LOCKUP

Linux Kernel Configuration
└─>Kernel hacking
└─>Debug Oops, Lockups and Hangs
└─>Test module to generate lockups
In linux kernel since version 5.1 (release Date: 2019-05-05)  
This builds the "test_lockup" module that helps to make sure
that watchdogs and lockup detectors are working properly.

Depending on module parameters it could emulate soft or hard
lockup, "hung task", or locking arbitrary lock for a long time.
Also it could generate series of lockups with cooling-down periods.

If unsure, say N.

source code:
depends
CONFIG_MODULES