Re: kernel stuck test

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

 



Hi,

On Wed, Oct 6, 2010 at 11:02 AM, Sengottuvelan S
<sengottuvelan.s@xxxxxxxxx> wrote:
> Hi,
>
> I would like to implement "kernel stuck" for while say 30 sec so that
> watchdog can catch it using /proc/interrupts file. How can i do it?
>
> please point me how i can do it for test purpose.

Write simple module, and in the module_init routine, disable
interrupts and enter an infinite loop. This will work on a single-core
machine. On a multi-core you need to be a bit more inventive...

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[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