<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 13, 2013 at 12:32 PM, Vipul Jain <span dir="ltr"><<a href="mailto:vipulsj@gmail.com" target="_blank">vipulsj@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><br><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Dec 13, 2013 at 6:30 AM, <span dir="ltr"><<a href="mailto:Valdis.Kletnieks@vt.edu" target="_blank">Valdis.Kletnieks@vt.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>On Thu, 12 Dec 2013 16:45:32 -0800, Vipul Jain said:<br>
<br>
> I would like to enable softlockup and hardlockup option in Linux kernel<br>
> and would like to test it to make sure that when soft and hard lockup<br>
> condition arises we do see kernel taking configured action. Hence was<br>
> wondering if there is any tool to do the same (basically injecting the<br>
> errors).<br>
<br>
</div></div>Build your kernel with CONFIG_BOOTPARAM_HARDLOCKUP_PANIC and/or<br>
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC and then stick an infinite loop<br>
somewhere in the kernel. See lib/Kconfig.debug under 'Debug Lockups and Hangs'.<br>
</blockquote></div><br></div></div></div><div class="gmail_extra">Hi Valids,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I am able to configure the kernel with soft and hard lockup flags but now I would like to generate and hard and soft lockup event and verify it and was wondering if we have any tool in place that I can use, if not, any guidance of how to go about testing it will be great.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Vipul.</div></div>
</blockquote></div>Hi Valids,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I did enable below flags but not sure if the softlockup and hardlockup detection mechanism is running on kernel so I added printk statements in kernel/watchdog.c but I don't see any prints in dmesg just wondering if you can help me to know why I don't see any prints in dmesg</div>
<div class="gmail_extra"><div class="gmail_extra">CONFIG_LOCKUP_DETECTOR=y</div><div class="gmail_extra">CONFIG_HARDLOCKUP_DETECTOR=y</div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">
Vipul.</div><div class="gmail_extra"><br></div><div><br></div></div></div>