[dtrace-discuss] ustack() question
Adam Leventhal
ahl at eng.sun.com
Wed Jun 6 12:35:36 PDT 2007
You're right that it's not explicitly stated, but if there's no associated
user context, ustack() should return an empty stack and ustackdepth should
have a value of 0.
Adam
On Wed, Jun 06, 2007 at 11:27:48AM -0700, Peter Lawrence wrote:
>
> the Users Guide isn't explicit about what happens when ustack() is called
> and there isn't any user address space or stack associated with the
> current kernel thread. It only gives examples where there certainly is,
> using the syscall provider.
>
> I have used sched:::off-cpu to see user-stacks at context-switch events,
> and it seems to work just fine, but I'm wondering how to put in an
> explicit predicate for user-associated kernel threads...?...
>
> thanks
> Pete Lawrence.
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
--
Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl
More information about the dtrace-discuss
mailing list