Hi Micke, In my understanding, sleep q (s) and blocking on system call needn't necessarily follow similar codepath . If you are looking for sleep (x) code, may be this
http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libbc/libc/gen/4.2/sleep.c or this http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libbc/libc/gen/sys5/sleep.c is what you are looking for. If you want to measure the system call blocking time, etc, you could take a look at the implementation of the times(2) and see if that gives you a clue. Or may be some function in dispatcher related code could help. Since I am not very familiar with the internals, I guess I will stop and let someone more knowledgeable take over :) Thanks Suraj micke wrote: > Hi, I'm in need of knowing exactly where in the code the sleep q(s) are > implemented? > > That is, when a thread do a system call and gets blocked, where do this > happen? What functions are call by the thread? > > I need to capture the time of this event ... > > > This message posted from opensolaris.org > _______________________________________________ > opensolaris-code mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/opensolaris-code > _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
