1: #ifdef  UCB_METER
   2: 
   3: /*
   4:  * System totals computed every five seconds
   5:  */
   6: struct  vmrate {
   7: #define v_first v_swtch
   8:     u_short v_swtch;    /* context switches */
   9:     u_short v_trap;     /* calls to trap */
  10:     u_short v_syscall;  /* calls to syscall() */
  11:     u_short v_intr;     /* device interrupts */
  12:     u_short v_pdma;     /* pseudo-DMA interrupts */
  13:     u_short v_ovly;     /* overlay emts */
  14:     u_short v_pswpin;   /* pages swapped in */
  15:     u_short v_pswpout;  /* pages swapped out */
  16:     u_short v_swpin;    /* swapins */
  17:     u_short v_swpout;   /* swapouts */
  18: #define v_last  v_swpout
  19: };
  20: 
  21: struct  vmsum {
  22: #define vs_first    vs_swtch
  23:     long    vs_swtch;   /* context switches */
  24:     long    vs_trap;    /* calls to trap */
  25:     long    vs_syscall; /* calls to syscall() */
  26:     long    vs_intr;    /* device interrupts */
  27:     long    vs_pdma;    /* pseudo-DMA interrupts */
  28:     long    vs_ovly;    /* overlay emts */
  29:     long    vs_pswpin;  /* clicks swapped in */
  30:     long    vs_pswpout; /* clicks swapped out */
  31:     long    vs_swpin;   /* swapins */
  32:     long    vs_swpout;  /* swapouts */
  33: #define vs_last vs_swpout
  34: };
  35: 
  36: struct  vmtotal {
  37:     u_short t_rq;       /* length of run queue */
  38:     u_short t_dw;       /* jobs in ``disk wait'' (neg priority) */
  39:     u_short t_sl;       /* jobs sleeping in core */
  40:     u_short t_sw;       /* swapped out runnable/short block jobs */
  41:     long    t_vm;       /* total virtual memory, clicks */
  42:     long    t_avm;      /* active virtual memory, clicks */
  43:     size_t  t_rm;       /* total real memory, clicks */
  44:     size_t  t_arm;      /* active real memory, clicks */
  45:     long    t_vmtxt;    /* virtual memory used by text, clicks */
  46:     long    t_avmtxt;   /* active virtual memory used by text, clicks */
  47:     size_t  t_rmtxt;    /* real memory used by text, clicks */
  48:     size_t  t_armtxt;   /* active real memory used by text, clicks */
  49:     u_short t_free;     /* free memory, kb */
  50: };
  51: 
  52: #ifdef  KERNEL
  53: struct  vmrate  cnt, rate;
  54: struct  vmsum   sum;
  55: struct  vmtotal total;
  56: u_short avefree;        /* smoothed average free memory, kb */
  57: size_t  freemem;        /* current free, clicks */
  58: #endif	KERNEL
  59: 
  60: #endif	UCB_METER

Defined variables

cnt defined in line 53; used 9 times
rate defined in line 53; used 20 times
sum defined in line 54; used 25 times
total defined in line 55; used 58 times

Defined struct's

vmrate defined in line 6; used 12 times
vmsum defined in line 21; used 4 times
vmtotal defined in line 36; used 4 times

Defined macros

v_first defined in line 7; used 2 times
v_last defined in line 18; used 1 times
vs_first defined in line 22; used 1 times
vs_last defined in line 33; never used

Usage of this include

Last modified: 1983-09-06
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 842
Valid CSS Valid XHTML 1.0 Strict