]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r234691
authorrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 27 May 2012 18:55:23 +0000 (18:55 +0000)
committerrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 27 May 2012 18:55:23 +0000 (18:55 +0000)
commit1720eb998ed3ff3b4efc4c901a3b5bbb883142cf
treee6b60c3a984fb0120237b1813de7292d393bb8d1
parent11304815d9403e35c3b114b19ca73fd2aa904977
MFC r234691

 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
 particular, just before the thread gets descheduled) so instead I have
 implemented this as its own built-in variable.

 Sponsored by: Sandvine Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/9@236160 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h