[dtrace-discuss] how to know thread-id?
przemolicc at poczta.fm
przemolicc at poczta.fm
Wed Oct 3 06:23:26 PDT 2007
On Wed, Oct 03, 2007 at 05:23:58AM -0700, Ajit Bansode wrote:
> Hi all,
> With "dvm$target:::thread-start" we can only know the thread-name of the thread being created. But at the same time I want to know thread-id also.
>
> Could you, please, tell me how to do this?
'tid' is what you are looking for:
dtrace -n 'dvm$target:::thread-start {printf ("%d, %s, ", tid, copyinstr(arg0))}'
przemol
--
http://przemol.blogspot.com/
----------------------------------------------------------------------
Fajne i smieszne. Zobacz najlepsze filmiki!
>>> http://link.interia.pl/f1bbb
More information about the dtrace-discuss
mailing list