/* * The statistics buffer */ #ifdef MEASURE #define MAXCYLS 800 /* max number of cylinders (800 - 7925, 400 -7906 */ #define MAXPAGES 512+1 /* max number of pages per process */ #define ABS(a) ((a) < 0 ? -(a) : (a)) /* define for total number of system calls -- see sysent.c */ #define SYSCALLS 64 struct statistics { struct proc_data { long swtchs; long mapswtch; long mapsched; long newprocs; long idle; long same; long new[MAXPAGES]; long run[MAXPAGES]; } proc_stats; struct disk_data { long d_read; long d_write; long d_move; long d_curcyl; long d_lstcyl; long d_distance; long d_error; long d_err; long d_freq[MAXCYLS]; long d_dist[MAXCYLS]; } dsk_stats; struct swap_data { long swp_ocnt; long swp_osize; long swp_icnt; long swp_isize; long swp_lso; long swp_wait; long swp_slp; } swp_stats; struct call_data { long call_cnts; long call_type[SYSCALLS]; } sys_calls; }; #endif