Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DTrace and curproc

10 views
Skip to first unread message

Slawa Olhovchenkov

unread,
Sep 18, 2016, 9:10:02 AM9/18/16
to freebsd...@freebsd.org
Is a way to get curproc in DTrace script?
Direct using curproc give me error:

"failed to resolve curproc: Unknown variable name"
_______________________________________________
freebsd...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hacke...@freebsd.org"

Mark Johnston

unread,
Sep 18, 2016, 1:24:51 PM9/18/16
to Slawa Olhovchenkov, freebsd...@freebsd.org
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.
0 new messages