1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)vmmeter.h	7.1 (Berkeley) 6/4/86
   7:  */
   8: 
   9: /*
  10:  * Virtual memory related instrumentation
  11:  */
  12: struct vmrate
  13: {
  14: #define v_first v_swtch
  15:     u_short v_swtch;    /* context switches */
  16:     u_short v_trap;     /* calls to trap */
  17:     u_short v_syscall;  /* calls to syscall() */
  18:     u_short v_intr;     /* device interrupts */
  19:     u_short v_soft;     /* software interrupts */
  20:     u_short v_pdma;     /* pseudo-dma interrupts */
  21:     u_short v_ovly;     /* overlay emts */
  22:     u_short v_fpsim;    /* floating point simulator faults */
  23:     u_short v_pswpin;   /* pages swapped in */
  24:     u_short v_pswpout;  /* pages swapped out */
  25:     u_short v_pgin;     /* pageins */
  26:     u_short v_pgout;    /* pageouts */
  27: #define v_last  v_pswpout
  28:     u_short v_swpin;    /* swapins */
  29:     u_short v_swpout;   /* swapouts */
  30: };
  31: struct vmsum
  32: {
  33:     long    v_swtch;    /* context switches */
  34:     long    v_trap;     /* calls to trap */
  35:     long    v_syscall;  /* calls to syscall() */
  36:     long    v_intr;     /* device interrupts */
  37:     long    v_soft;     /* software interrupts */
  38:     long    v_pdma;     /* pseudo-dma interrupts */
  39:     long    v_ovly;     /* overlay emts */
  40:     long    v_fpsim;    /* floating point simulator faults */
  41:     long    v_pswpin;   /* pages swapped in */
  42:     long    v_pswpout;  /* pages swapped out */
  43:     long    v_pgin;     /* pageins */
  44:     long    v_pgout;    /* pageouts */
  45:     long    v_swpin;    /* swapins */
  46:     long    v_swpout;   /* swapouts */
  47: };
  48: #if defined(KERNEL) && defined(UCB_METER) && !defined(SUPERVISOR)
  49: struct vmrate   cnt, rate;
  50: struct vmsum    sum;
  51: #endif
  52: 
  53: /* systemwide totals computed every five seconds */
  54: struct vmtotal
  55: {
  56:     short   t_rq;       /* length of the run queue */
  57:     short   t_dw;       /* jobs in ``disk wait'' (neg priority) */
  58:     short   t_sl;       /* jobs sleeping in core */
  59:     short   t_sw;       /* swapped out runnable/short block jobs */
  60:     long    t_vm;       /* total virtual memory, clicks */
  61:     long    t_avm;      /* active virtual memory, clicks */
  62:     size_t  t_rm;       /* total real memory, clicks */
  63:     size_t  t_arm;      /* active real memory, clicks */
  64:     long    t_vmtxt;    /* virtual memory used by text, clicks */
  65:     long    t_avmtxt;   /* active virtual memory used by text, clicks */
  66:     size_t  t_rmtxt;    /* real memory used by text, clicks */
  67:     size_t  t_armtxt;   /* active real memory used by text, clicks */
  68:     size_t  t_free;     /* free memory, kb */
  69: };
  70: #if defined(KERNEL) && !defined(SUPERVISOR)
  71: struct  vmtotal total;
  72: #endif

Defined variables

rate defined in line 49; used 3 times
sum defined in line 50; used 3 times
total defined in line 71; used 36 times

Defined struct's

vmrate defined in line 12; used 6 times
vmsum defined in line 31; used 6 times
vmtotal defined in line 54; used 8 times

Defined macros

v_first defined in line 14; used 3 times
v_last defined in line 27; used 1 times

Usage of this include

vmmeter.h used 2 times
Last modified: 1988-04-30
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2663
Valid CSS Valid XHTML 1.0 Strict