Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2016 10:24:24 -0700
From:      Mark Johnston <markj@FreeBSD.org>
To:        Slawa Olhovchenkov <slw@zxy.spb.ru>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: DTrace and curproc
Message-ID:  <20160918172424.GA57218@raichu>
In-Reply-To: <20160918130918.GJ2840@zxy.spb.ru>
References:  <20160918130918.GJ2840@zxy.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160918172424.GA57218>