OSDN Git Service

dumpstate: dump all threads in show_wchan
authorColin Cross <ccross@android.com>
Fri, 2 Nov 2012 22:46:56 +0000 (15:46 -0700)
committerColin Cross <ccross@android.com>
Sat, 3 Nov 2012 06:57:43 +0000 (23:57 -0700)
commit0c22e8b31651caf12a2b4d4acef5bc65d486e570
treecaac27a5a0f3118292952c412460d884fd6187c8
parent7e251273880c4108bc56b4cdc52f6193876ef59a
dumpstate: dump all threads in show_wchan

for_each_pid only finds processes and not their threads.  Add
for_each_tid and call it for show_wchan so we can see where all
threads are blocked in the kernel.

Change-Id: Iffb59f7c2933cecf51cdd358a36e19932c2f24c7
cmds/dumpstate/dumpstate.c
cmds/dumpstate/dumpstate.h
cmds/dumpstate/utils.c