PSTAT Interfaces
38
double psp_avg_5_min;
double psp_avg_15_min;
/* per-processor CPU time/state */
_T_LONG_T psp_cpu_time[PST_MAX_CPUSTATES];
_T_ULONG_T psp_logical_node; /* node the spu is on */
pst_vm_status
This structure contains process address space information. Header file: <vm_pstat_body.h>
_T_LONG_T pst_space; /* virtual space for region */
_T_LONG_T pst_vaddr64bit_pad;
_T_LONG_T pst_vaddr; /* virtual offset for region */
_T_LONG_T pst_length; /* number of pages mapped by pregion */
_T_LONG_T pst_phys_pages; /* number of valid pages in region */
_T_LONG_T pst_flags;
_T_LONG_T pst_type;
_T_LONG_T pst_permission; /* protection type (not protid) of region */
struct __psfileid pst_id;
int32_t pst_valid; /* valid vector. PST_VADDR à 0x1 */
_T_LONG_T pst_pagesize_hint;
_T_LONG_T pst_vps_pgsizes[PST_N_PG_SIZES];
struct __pst_fid pst_fid; /* A unique ID to efficiently reaccess the file
* corresponding to the memory region */
_T_ULONG_T pst_refcnt; /* # of processes sharing the region */
_T_ULONG_T pst_incore; /* # of non-swapped processes sharing region */
_T_LONG_T pst_lockmem; /* # of pages locked in memory */
uint32_t pst_hi_fileid; /* Per shared file ID */
uint32_t pst_lo_fileid;
uint32_t pst_hi_nodeid; /* Per vnode ID*/
uint32_t pst_lo_nodeid;
uint32_t padding;
Number of page sizes: PST_N_PG_SIZES à 16
pst_seminfo
This structure describes System V semaphore set information. Header file:
<sys/pstat/ipc_pstat_body.h>
_T_ULONG_T pse_idx; /* Index for further pstat() requests */
_T_LONG_T pse_uid; /* UID of semaphore set owner */
_T_LONG_T pse_gid; /* GID of semaphore set owner */
_T_LONG_T pse_cuid; /* UID of semaphore set creator */
_T_LONG_T pse_cgid; /* GID of semaphore set creator */
_T_ULONG_T pse_mode; /* mode of semaphore set (9 bits) */
_T_ULONG_T pse_seq; /* sequence number of semaphore set */
_T_ULONG_T pse_key; /* IPC key of semaphore set */
_T_ULONG_T pse_nsems; /* number of semaphores for this set */
_T_LONG_T pse_otime; /* last semop time (secs since 1970) */
_T_LONG_T pse_ctime; /* last change time (since 1970) */
_T_ULONG_T pse_flags; /* flags for the semaphore set */
Flag bit definitions for pse_flags: PS_SEM_ALLOC à 0x1 /* semaphore set is in use */