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.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to