help in developing soft and hardlockup detection tool

Vipul Jain vipulsj at
Sun Dec 15 03:27:49 EST 2013


I would like to write a kernel module that will induce the softlockup and
hardlockup on the cpu core(s). Below is my logic and was wondering if some
one can help me verify and guide me creating a thread and other stuff for
implementing the logic.

on given cpu number.
1. disable kernel preemption
2. keep looping for 21 seconds (as per kernel Documentation it takes 20
seconds to detect and I would like to recover the system once its detected).
3. release the cpu

on given cpu number.
1. disable interrrupts.
2. keep looping for 11 seconds.
3. enable interrupts and release cpu.

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Kernelnewbies mailing list