help in developing soft and hardlockup detection tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux