Debugging Process/Threads in Embedded Linux Platform

prashanth22 - September 13, 2010

Hi,
I am facing problems with debugging Threads and Process crash in my system. I have ARM9+ Linux running and my application on top of that which creates many processes and Threads. Sometime i see some process/Threads crash and brings the whole system down and this makes my life difficult to know which one caused the crash. Apart from this sometimes i see some process/threads are stalled due to resource unavailability. Is their any tool which shows me what are the current active process, threads and the shared resources they are currently accessing. Something which gives me snapshot every few milliseconds and possibly accessible over LAN. 

Thanks
Prashanth

Share this

Comments

Have you tried LTTng or

Have you tried LTTng or disable OOM?

Steve

RE: Debugging Process/Threads in Embedded Linux Platform

You should take a look at Helgrind and LTTng.  Helgrind is specifically targeted at debugging threads and race conditions and LTTng will help you see the interactions between your threads and the kernel.  However, the idea that your threads are causing the system to crash is somewhat disturbing.  Threads are specifically isolated from other processes and from the kernel.  So, if it's actually crashing the system rather than simply making your application unusable, then you have some serious design flaws lurking someplace.

HTH,

Mike

--

Mike Anderson

http://www.ThePTRGroup.com