]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r234691
authorrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 27 May 2012 18:57:20 +0000 (18:57 +0000)
committerrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 27 May 2012 18:57:20 +0000 (18:57 +0000)
commit420f989ce79ccf489f63d01e38ab0788a0b65b5e
treeeacc26017707f8f40eac3c9bffec440cdaf39a87
parent9a0cf9b4e37048b0ed9f8161d793cfe83ed55ed6
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
 particukar, 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/8@236161 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