DTrace and curproc

Mark Johnston markj at FreeBSD.org
Sun Sep 18 17:24:29 UTC 2016


On Sun, Sep 18, 2016 at 04:09:19PM +0300, Slawa Olhovchenkov wrote:
> Is a way to get curproc in DTrace script?
> Direct using curproc give me error:
> 
> "failed to resolve curproc: Unknown variable name"

You can use curthread->td_proc, which is equivalent. "curpsinfo" from
Solaris is also implemented.


More information about the freebsd-hackers mailing list