PSTAT Interfaces
37
struct __pst_fid pst_fid_cdir;/* Cookie for current working directory */
uint32_t pst_hi_fileid_rdir; /* per shared file ID */
uint32_t pst_lo_fileid_rdir;
uint32_t pst_hi_nodeid_rdir; /* per vnode ID */
uint32_t pst_lo_nodeid_rdir;
struct __pst_fid pst_fid_rdir;/* Cookie for root directory */
uint32_t pst_hi_fileid_text; /* per shared file ID */
uint32_t pst_lo_fileid_text;
uint32_t pst_hi_nodeid_text; /* per vnode ID */
uint32_t pst_lo_nodeid_text;
struct __pst_fid pst_fid_text;/* Cookie for text file */
Lengths for cached command line and u_comm entries:
PST_CLEN à 64
PST_UCOMMLEN à (14 + 1)
pst_processor
This structure describes per-processor information. Header file: <sys/pstat/global_pstat_body.h>
_T_ULONG_T psp_idx; /* Index of the current spu in the array
* of processor statistic entries. */
_T_ULONG_T psp_fsreads; /* # of reads from filesys blocks. */
_T_ULONG_T psp_fswrites; /* # of writes to filesys blocks. */
_T_ULONG_T psp_nfsreads; /* # of NFS disk blk reads issued. */
_T_ULONG_T psp_nfswrites; /* # of NFS disk blk writes issued. */
_T_ULONG_T psp_bnfsread; /* # of bytes read from NFS. */
_T_ULONG_T psp_bnfswrite; /* # of bytes written to NFS. */
_T_ULONG_T psp_phread; /* # of physical reads to raw devs. */
_T_ULONG_T psp_phwrite; /* # of physical writes to raw devs. */
_T_ULONG_T psp_runocc; /* # of times the processor had processes
* waiting to run. This running total is
* updated once a second. */
_T_ULONG_T psp_runque; /* # of processes the processor had waiting
* to run. This running total is updated
* once a second. */
_T_ULONG_T psp_sysexec; /* # of exec system calls. */
_T_ULONG_T psp_sysread; /* # of read system calls. */
_T_ULONG_T psp_syswrite; /* # of write system calls. */
_T_ULONG_T psp_sysnami; /* # of calls to sysnami(). */
_T_ULONG_T psp_sysiget; /* # of calls to sysiget(). */
_T_ULONG_T psp_dirblk; /* # of filesystem blocks read doing
* directory lookup. */
_T_ULONG_T psp_semacnt; /* # of System V semaphore ops. */
_T_ULONG_T psp_msgcnt; /* # of System V message ops. */
_T_ULONG_T psp_muxincnt; /* # of MUX interrupts received. */
_T_ULONG_T psp_muxoutcnt; /* # of MUX interrupts sent. */
_T_ULONG_T psp_ttyrawcnt; /* # of raw characters read. */
_T_ULONG_T psp_ttycanoncnt; /* # of canonical chars processed. */
_T_ULONG_T psp_ttyoutcnt; /* # of characters output. */
struct __pscoproc psp_coprocessor; /* info on any co-processors */
_T_ULONG_T psp_iticksperclktick; /* interval timer counts (CR16) per
* clock tick, see sysconf(_SC_CLK_TCK)*/
_T_ULONG_T psp_sysselect; /* # of select system calls. */
struct __pstcycles psp_idlecycles; /* 64-bit idle execution cycle count */
double psp_avg_1_min; /* per-processor run queue lengths */