Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/top/machine.h
Show All 24 Lines | |||||
{ | { | ||||
const char * const *procstate_names; | const char * const *procstate_names; | ||||
const char * const *cpustate_names; | const char * const *cpustate_names; | ||||
const char * const *memory_names; | const char * const *memory_names; | ||||
const char * const *arc_names; | const char * const *arc_names; | ||||
const char * const *carc_names; | const char * const *carc_names; | ||||
const char * const *swap_names; | const char * const *swap_names; | ||||
const char * const *order_names; | const char * const *order_names; | ||||
int nbatteries; | |||||
int ncpus; | int ncpus; | ||||
}; | }; | ||||
/* | /* | ||||
* the system_info struct is filled in by a machine dependent routine. | * the system_info struct is filled in by a machine dependent routine. | ||||
*/ | */ | ||||
struct system_info | struct system_info | ||||
{ | { | ||||
int last_pid; | int last_pid; | ||||
double load_avg[NUM_AVERAGES]; | double load_avg[NUM_AVERAGES]; | ||||
int p_total; | int p_total; | ||||
int p_pactive; /* number of procs considered "active" */ | int p_pactive; /* number of procs considered "active" */ | ||||
int *procstates; | int *procstates; | ||||
int *cpustates; | int *cpustates; | ||||
int *memory; | int *memory; | ||||
int *arc; | int *arc; | ||||
int *carc; | int *carc; | ||||
int *swap; | int *swap; | ||||
struct timeval boottime; | struct timeval boottime; | ||||
int battery; | |||||
int ncpus; | int ncpus; | ||||
}; | }; | ||||
/* | /* | ||||
* the process_select struct tells get_process_info what processes | * the process_select struct tells get_process_info what processes | ||||
* and information we are interested in seeing | * and information we are interested in seeing | ||||
*/ | */ | ||||
Show All 37 Lines |