PSTAT Interfaces
30
_T_LONG_T psd_mpdcnt; /* # of (bad) memory pages deallocated */
_T_LONG_T psd_procovf; /* # of times the proc table overflowed */
_T_LONG_T psd_inodeovf; /* # of times the inode table overflowed */
_T_LONG_T psd_fileovf; /* # of times the file table overflowed */
_T_LONG_T psd_global_virtual; /* Available global virtual space
* (pages) */
int32_t psd_valid; /* This is a vector that will indicate
* if a certain field in is valid. */
_T_LONG_T psd_monarch_node; /* monarch logical node ID */
_T_LONG_T psd_node_cnt; /* number of nodes on the system*/
_T_LONG_T psd_dnlc_size; /* Size of DNLC */
_T_ULONG_T psd_dnlc_hits; /* DNLC Cache hits */
_T_ULONG_T psd_dnlc_misses; /* DNLC Cache misses */
_T_ULONG_T psd_dnlc_long; /* DNLC Long names tried to lookup */
The following fields are obsolete and provided only for backward compatibility:
psd_cpu_time, psd_mp_avg_1_min[], psd_mp_avg_5_min[], psd_mp_avg_15_min[],
psd_mp_cpu_time[][]. Since the size of these arrays is hard-wired, there is no way to get
information about more than a fixed number of processors with the pstat_getdynamic() call.
Instead, pstat_getprocessor() should be used. It returns the same information and supports any
number of processors.
Macros for field validity check for struct pst_dynamic (member psd_valid) are:
PSD_VM à 0x1
PSD_AVM à 0x2
These bits will be cleared in psd_valid if the corresponding members psd_vm and psd_avm
overflow.
pst_fileinfo2
This structure describes per-file information. Each structure returned describes one open file a
process. Header file: <sys/pstat/vfs_pstat_body.h>
int32_t psf_valid; /* Valid vector */
int32_t psf_ftype; /* File type, PS_TYPE_VNODE etc. */
pst_subtype_t psf_subtype; /* File subtype PS_SUBTYPE_CHARDEV ...*/
int32_t psf_flag; /* Flags associated with file status */
struct __pst_fid psf_fid; /* An efficient means to re-access the vnode
* of opened files. */
uint32_t psf_hi_fileid; /* Per shared file ID */
uint32_t psf_lo_fileid;
uint32_t psf_hi_nodeid; /* Per vnode/socket ID */
uint32_t psf_lo_nodeid;
int32_t psf_nstrentt; /*
* # of entities in a stream. This member is
* valid only for streams or sockets that use
* a stream. Head + Modules + Driver */
_T_LONG_T psf_count; /* Reference count */
_T_ULONG_T psf_fd; /*
* File descriptor of the file
* and index for further calls
*/
struct __psfileid psf_id; /* Unique identification of the file */
off32_t psf_offset; /* Current 32-bit offset in the file */