On Mon, Nov 17, 2008 at 04:11:10PM -0500, Benjamin Smedberg wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Jonathan Adams wrote: > > >> lwp-create is fired from the creating thread. lwp-start is fired from the > >> new thread. > > But this is demonstrably not true, at least on MacOS: > > lwp-start and lwp-create both fired with > > > pid: 32254 > > tid: 111341864 > > but lwp-exit fired with > > pid: 43113 > > tid: 74125832 > > I'm going to run this same experiment in OpenSolaris to see if this is just > a bug in the MacOS implementation.
This sounds like a bug in the MacOS implementation; from the Dynamic Tracing Guide: http://docs.sun.com/app/docs/doc/817-6223/6mlkidloj?l=en&a=view ... lwp-create Probe that fires when an LWP is created, typically as a result of thr_create(3C). The lwpsinfo_t corresponding to the new thread is pointed to by args[0]. The psinfo_t of the process containing the thread is pointed to by args[1]. lwp-start Probe that fires within the context of a newly created LWP. The lwp-start probe will fire before any user-level instructions are executed. If the LWP is the first LWP in the process, the start probe will fire, followed by lwp-start. ... Cheers, - jonathan _______________________________________________ dtrace-discuss mailing list [email protected]
