# 2.11BSD#431 - /usr/src/sys/h/vmmeter.h

##### Variables

    cnt               X
    rate              X
    sum               X
    total             X

##### Macros

    v_first           X
    v_last            X

##### struct's

    vmrate            X
    vmsum             X
    vmtotal           X

       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

cnt defined in line 49; used 18 times

- in /usr/src/sys/pdp/trap.c line 65, 137, 334
- in /usr/src/sys/sys/kern_synch.c line 422
- in /usr/src/sys/sys/vm_sched.c line 169-170(2), 181-186(6)
- in /usr/src/sys/sys/vm_swap.c line 79, 152
- in /usr/src/sys/sys/vm_swp.c line 35-40(4)

rate defined in line 49; used 3 times

- in /usr/src/sys/sys/vm_sched.c line 169, 181-184(2)

sum defined in line 50; used 3 times

- in /usr/src/sys/sys/vm_sched.c line 169, 182-185(2)

total defined in line 71; used 36 times

- in /usr/src/sys/sys/kern_sysctl.c line 449-450(2)
- in /usr/src/sys/sys/vm_sched.c line 198-201(4), 207-219(10), 228-230(2), 243-247(3), 258-264(4), 278-283(2), 294-298(9)

#### Defined struct's

vmrate defined in line 12; used 6 times

- in line 49(2)
- in /usr/src/sys/pdp/genassym.c line 74(2)
- in /usr/src/ucb/vmstat.c line 122(2)

vmsum defined in line 31; used 6 times

- in line 50(2)
- in /usr/src/ucb/vmstat.c line 124(2), 140(2)

vmtotal defined in line 54; used 8 times

- in line 71(2)
- in /usr/src/ucb/PORT/systat/vmstat.c line 100(2)
- in /usr/src/ucb/vmstat.c line 123-127(4)

#### Defined macros

v_first defined in line 14; used 3 times

- in /usr/src/sys/sys/vm_sched.c line 169(3)

v_last defined in line 27; used 1 times

- in /usr/src/sys/sys/vm_sched.c line 170

#### Usage of this include

vmmeter.h used 2 times

- in /usr/src/sys/h/vm.h line 17-22(2)

Last modified: 1988-04-30 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 497 |