LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-22-2016, 06:43 AM   #1
srivatsa231181
LQ Newbie
 
Registered: Sep 2016
Posts: 2

Rep: Reputation: Disabled
Printing useful info on watchdog expiry


Hello,

I have had a problem where watchdog timer is expiring on my embedded system board - but I am not able to figure out why my process is not able to strobe (kick) the watchdog in time. It looks like there is some process occupying the CPU.

Whenever the watchdog expires, is there any useful info that I can print to figure out who the culprit is?

The watchdog expiry routine where I need to plug in the routine to capture useful info is in the kernel space. So, I cannot use something like "top" which is a user space command. Can you please suggest the kernel space equivalent of this? And also, how to print info for certain processes at a thread level?

If possible, can you please share some code for something that is already done in this space?
 
Old 11-25-2016, 09:26 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Many embedded programs have a 'supervisor' routine calling other routines. If that's the case, the supervisor routine has to complete (i.e all the code completes a cycle) in less time than the watchdog times out in. It would appear this is not happening. Investigate this - your solution will be obvious once you find what's causing it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printing info files ttilt Linux - Software 1 01-09-2012 04:43 PM
Intel's watchdog support iTCO_wdt - does this mean watchdog is not present? kushalkoolwal Linux - Hardware 3 02-06-2009 03:16 PM
Hardware watchdog in BIOS and Linux watchdog driver are different? travishein Linux - Hardware 1 12-22-2008 09:41 PM
Printing Info Pages TGWDNGHN Linux - Software 3 10-07-2005 06:52 PM
printing an info file ttilt Linux - General 2 06-16-2004 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration