freebsd-dev/cddl/contrib
Ryan Stone c6024848dd Implement the D "cpu" variable, which returns curcpu. I have chosen not
to follow the example of OpenSolaris and its descendants, which implemented
cpu as an inline that took a value out of curthread.  At certain points in
the FreeBSD scheduler curthread->td_oncpu will no longer be valid (in
particukar, just before the thread gets descheduled) so instead I have
implemented this as its own built-in variable.

Sponsored by:	Sandvine Inc.
MFC after:	1 week
2012-04-26 01:07:03 +00:00
..
dtracetoolkit Port dtruss to FreeBSD. 2010-08-24 23:24:43 +00:00
opensolaris Implement the D "cpu" variable, which returns curcpu. I have chosen not 2012-04-26 01:07:03 +00:00