> 
> > I need to look at the content of the lwpsinfo structure from a process core 
> > dump. Is there some MDB magic for that?
> > 
> > - Alexander Kolbasov
> 
> The mdb proc target publishes some of the libproc data structures
> as "xdata" (extended data buffers): you can list them using ::xdata:
> 
> > ::xdata
> auxv                     - procfs auxv_t array (104 bytes)
> cred                     - procfs prcred_t structure (44 bytes)
> ehdr                     - executable file GElf_Ehdr structure (64 bytes)
> lwpstatus                - procfs lwpstatus_t array (800 bytes)
> pshandle                 - libproc proc service API handle (4 bytes)
> psinfo                   - procfs psinfo_t structure (336 bytes)
> pstatus                  - procfs pstatus_t structure (1136 bytes)
> utsname                  - utsname structure (1285 bytes)
> 
> The mdb_get_xdata() api (see the docs for info) is used to read these buffers.
> Feel free to add more if they are needed and useful.  Note that the pshandle
> itself is exported, so you can read it directly and then get to other things.
> Some example code to do this for per-lwp cursig values is below.

Thanks Mike, this is very helpful. Is there any programmatic support for LWP 
iteration similar to Plwp_iter_all()? 

- Alexander Kolbasov


Reply via email to