help in developing soft and hardlockup detection tool

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


Hi,

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.

softlockup:
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

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

Regards,
Vipul.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131215/11ea000f/attachment.html 


More information about the Kernelnewbies mailing list