Displaying 2 results from an estimated 2 matches for "lwp_pcb".
2006 Jul 17
7
access to errno when using pid provider
I would like to know how to get access to errno when using pid provider to probe calls to
libc functions like fopen(). The built-in errno appears to be only for system calls. What I''d
like to be able to do is investigate where in an application I''m encountering EMFILE and
what the stack looks like at the time.
This message posted from opensolaris.org
2008 Mar 04
0
Determining curthread pointer (ulwp_t) via libproc on i386
...e ulwp_t and step over the
* ul_self pointer. The method used to store the user-land
* thread pointer is very different on 32- and 64-bit
* kernels.
*/
[ ... ]
#elif defined(__i386)
addr = USEGD_GETBASE(&lwp->lwp_pcb.pcb_gsdesc);
addr += sizeof (void *);
#endif
--------------------------------------------------------------------------------
So we''re using pcb_gsdesc, but it doesn''t appear that this is exposed
to userland via libproc (unless I''ve missed something.)
I...