kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Backtrace of every the threads
@ 2016-02-10  9:05 Ricardo Ribalda Delgado
  2016-02-10  9:20 ` Anupam Kapoor
  0 siblings, 1 reply; 9+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-02-10  9:05 UTC (permalink / raw)
  To: kernelnewbies

Hello

I have been debugging a process that makes a syscall which never
returned. The problem was the interaction between than process and
other kernel threads, due to an error on the way the locks were
designed (my bad).

Luckily, the error is gone now :). but I was wondering if there is a
way to show the backtrace of ALL the threads in the system, which
could have been a wonderful tool to debug this issue.

Things that I tried and NOT worked:

1) perf top:

It is fast and easy if the tasks are in active loops, but if they are
sleeping, waiting for an event, holding a lock.... they will not
appear.

2) ftrace

works, but there are MILLIONS of lines to navigate :S Unless there is
a good way to navigate the data it is a "last resource" tool.

3) gdb vmlinux /proc/kcore; info threads

I had big hopes on this... but only one thread was showed.

Are the Linux awareness gdb extensions ready?


4) sysrq, print backtrace

It only shows the active threads, not the "waiting" ones


What I want?

A magic command that shows the backtrace of ALL the threads (kernel
and userland). Something like a ps with steroids.

Does this exist? Where would be the best place to start developing
something like this: perf people, unix-utils, systemd :S , alone in a
dark basement?


Thanks!


-- 
Ricardo Ribalda

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-02-11 18:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-10  9:05 Backtrace of every the threads Ricardo Ribalda Delgado
2016-02-10  9:20 ` Anupam Kapoor
2016-02-10  9:36   ` Ricardo Ribalda Delgado
2016-02-10 10:32     ` Anupam Kapoor
2016-02-10 10:56       ` Ricardo Ribalda Delgado
2016-02-10 10:59         ` Anupam Kapoor
2016-02-10 13:37         ` Valdis.Kletnieks at vt.edu
2016-02-11 13:56           ` Ricardo Ribalda Delgado
2016-02-11 18:05             ` Valdis.Kletnieks at vt.edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).