truss status (was: cvs commit: src/sys/dev/lmc if_lmc.h)

Pav Lucistnik pav at FreeBSD.org
Mon Jul 24 17:55:21 UTC 2006


Robert Watson píše v po 24. 07. 2006 v 13:10 +0100:

> (3) truss is believed not to work properly with threaded applications.  ktrace
>      has been extended to know about thread IDs, and has always been able to
>      generate traces properly for threaded apps, whereas truss likely doesn't
>      see events from more than one thread (or if it does, it likely gets very
>      mixed up).  It might be good to confirm this.

Correct, truss is no-go on a multithreaded app.  In the moment two
threads enter syscall simultaneously, the whole thing goes to hell,
because truss works as follows:

App enters syscall, truss stores the name of syscall
App exits syscall, truss receives the return value and print the info


-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

It whines, glows and fades...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20060724/80698283/attachment.pgp


More information about the cvs-src mailing list