
                               					20-May-1983 10:18:51	VAX-11 FORTRAN V3.2-37              Page   1
								10-May-1983 10:16:27	CAD$VOLSET:[GARY.STATS.SOURCE]STATNET.FOR;21

0001    !
0002    !			  COPYRIGHT (c) 1982 BY
0003    !	      MOSTEK CORPORATION, CARROLLTON TX
0004    !
0005    ! This software is furnished under a license and may be used and  copied
0006    ! only  in  accordance  with  the  terms  of  such  license and with the
0007    ! inclusion of the above copyright notice.  This software or  any  other
0008    ! copies  thereof may not be provided or otherwise made available to any
0009    ! other person.  No title to and ownership of  the  software  is  hereby
0010    ! transferred.
0011    !
0012    ! The information in this software is subject to change  without  notice
0013    ! and  should  not  be  construed  as  a commitment by MOSTEK
0014    ! CORPORATION.
0015    !
0016    ! MOSTEK assumes no responsibility for the use or  reliability  of  its
0017    ! software on equipment which is not supplied by MOSTEK.
0018    !
0019     
0020    !++
0021    ! FACILITY:
0022    !   MOSTEK CORPORATION
0023    !
0024    ! ABSTRACT: STATNET gathers the DECnet info that is kept by VMS.
0025    !   
0026    !
0027    ! ENVIRONMENT: VAX VMS unprivileged
0028    !   
0029    !
0030    ! AUTHOR: Gary Smith, CREATION DATE: 8/18/1982
0031    !
0032    ! MODIFIED BY:
0033    !
0034    !--
0035    !
0036    ! TABLE OF CONTENTS:
0037    !
0038    !
0039    ! INCLUDE FILES: mousesubs.for
0040    !                defrec.for
0041    !
0042    !
0043    ! MACROS: none
0044    !
0045    !
0046    ! EQUATED SYMBOLS: see mousesubs.for
0047    !
0048    !
0049    ! EXTERNAL REFERENCES:
0050    !
0051    !          PMS$GL_ARRLOCPK -> arriving local packet count
0052    !          PMS$GL_ARRTRAPK -> arriving trans packet count
0053    !          PMS$GL_DEPLOCPK -> departing local packet count
0054    !          PMS$GL_RCVBUFFL -> receive buffer fail count
0055    !          PMS$GL_TRCNGLOS -> transmit congestion loss
0056     
0057    !++

                               					20-May-1983 10:18:51	VAX-11 FORTRAN V3.2-37              Page   2
								10-May-1983 10:16:27	CAD$VOLSET:[GARY.STATS.SOURCE]STATNET.FOR;21

0058    ! FUNCTIONAL DESCRIPTION: DECnet is now an integral part of VMS with 3.0
0059    !                         and thus the OS keeps stats on it. STATNET gathers
0060    !                         these stats with the aid of ML$L_PEEK. These are
0061    !                         kept as a difference measurement.
0062    !
0063    !
0064    ! FORMAL PARAMETERS: none
0065    !
0066    !
0067    !
0068    ! IMPLICIT INPUTS: none
0069    !
0070    !
0071    !
0072    ! IMPLICIT OUTPUTS: net_modes
0073    !
0074    !
0075    !
0076    ! ROUTINE VALUE and
0077    ! COMPLETION CODES: none
0078    !
0079    !
0080    !
0081    ! SIDE EFFECTS: none to date
0082    !
0083    !
0084    !
0085    !--
0086              SUBROUTINE STATNET
0087     
0088              include 'mousesubs.for'
0291              include 'defrec.for'
0393     
0394              external PMS$GL_ARRLOCPK
0395              external PMS$GL_ARRTRAPK
0396              external PMS$GL_DEPLOCPK
0397              external PMS$GL_RCVBUFFL
0398              external PMS$GL_TRCNGLOS
0399     
0400              external ML$L_PEEK
0401     
0402              integer  ML$L_PEEK
0403              integer  last(net_size), temp
0404     
0405    !++
0406    ! Gather up the DECnet stats
0407    !--
0408     
0409              rec_net_modes(arrlocpk) = ML$L_PEEK( %LOC( PMS$GL_ARRLOCPK ) )
0410              rec_net_modes(arrtrapk) = ML$L_PEEK( %LOC( PMS$GL_ARRTRAPK ) )
0411              rec_net_modes(deplocpk) = ML$L_PEEK( %LOC( PMS$GL_DEPLOCPK ) )
0412              rec_net_modes(rcvbuffl) = ML$L_PEEK( %LOC( PMS$GL_RCVBUFFL ) )
0413              rec_net_modes(trcnglos) = ML$L_PEEK( %LOC( PMS$GL_TRCNGLOS ) )
0414     
0415    !++
0416    ! Compute the delta from the last time
0417    !--

STATNET                        					20-May-1983 10:18:51	VAX-11 FORTRAN V3.2-37              Page   3
								10-May-1983 10:16:27	CAD$VOLSET:[GARY.STATS.SOURCE]STATNET.FOR;21

0418     
0419              do i = 1, net_size
0420                   temp = rec_net_modes(i)
0421                   rec_net_modes(i) = rec_net_modes(i) - last(i)
0422                   last(i) = temp
0423              end do
0424     
0425              return
0426              end




PROGRAM SECTIONS

    Name				 Bytes   Attributes

  0 $CODE                                  194   PIC CON REL LCL   SHR   EXE   RD NOWRT LONG
  2 $LOCAL                                  36   PIC CON REL LCL NOSHR NOEXE   RD   WRT LONG
  3 REC_COMMON                             348   PIC OVR REL GBL   SHR NOEXE   RD   WRT LONG

    Total Space Allocated                  578


ENTRY POINTS

    Address  Type  Name                                        References

  0-00000000       STATNET                                        86     


VARIABLES

    Address  Type  Name                            Attributes  References

  2-00000018  I*4  I                                             419=      420       421(3)    422     
  3-00000108  I*4  REC_RESPONSE                    COMM EQUIV    294       351     
  2-00000014  I*4  TEMP                                          403       420=      422     


ARRAYS

    Address  Type  Name                            Attributes        Bytes  Dimensions       References

  2-00000000  I*4  LAST                                                20  (5)                 403       421       422=    
  3-00000000  I*4  REC_CPU_MODES                   COMM EQUIV          36  (9)                 296       308     
  3-00000024  I*4  REC_FCP                         COMM EQUIV          20  (5)                 302       315     
  3-00000120  I*4  REC_LOCK_MODES                  COMM EQUIV          28  (7)                 304       370     
  3-00000080  I*4  REC_MEM_MODES                   COMM EQUIV           8  (2)                 297       320     

  3-00000038  I*4  REC_MISC                        COMM EQUIV          72  (18)                299       317     
  3-0000010C  I*4  REC_NET_MODES                   COMM EQUIV          20  (5)                 303       360       409=    
											       410=      411=      412=    
											       413=      420       421(2)= 
  3-00000088  I*4  REC_PGFLT                       COMM EQUIV          28  (7)                 301       324     
  3-0000013C  I*4  REC_POOL_MODES                  COMM EQUIV          32  (8)                 305       381     
  3-000000A4  I*4  REC_SCH_STATE                   COMM EQUIV          56  (14)                300       329     

STATNET                        					20-May-1983 10:18:51	VAX-11 FORTRAN V3.2-37              Page   4
								10-May-1983 10:16:27	CAD$VOLSET:[GARY.STATS.SOURCE]STATNET.FOR;21


  3-000000DC  I*4  REC_SWAP                        COMM EQUIV          36  (9)                 298       335     
  3-00000100  I*4  REC_TIME                        COMM EQUIV           8  (2)                 295       342     
  3-00000000  I*4  STATS_REC                       COMM EQUIV         348  (87)                292       306       308     
											       315       317       320     
											       324       329       335     
											       342       351       360     
											       370       381     


PARAMETER CONSTANTS

  Type  Name                                                   References

   I*2  ARRLOCPK                                                 235#      409     
   I*2  ARRTRAPK                                                 236#      410     
   CHAR ASCII_DELTA_TIME                                          93        94#    
   I*2  BIGHOLE                                                  269#    
   I*2  BJOBCNT                                                  125#    

   I*2  BUFIO                                                    146#    
   I*2  CEF                                                      192#    
   I*2  COLPG                                                    190#    
   I*2  COM                                                      201#    
   I*2  COMO                                                     202#    

   I*2  COMPAT                                                   123#    
   I*2  CPU_SIZE                                                 128#      285       296       315       317       320     
							         324       329       335       342       351       360     
							         370       381     
   I*2  CUR                                                      203#    
   I*2  DEPLOCPK                                                 237#      411     
   I*2  DEQ                                                      251#    

   I*2  DIRHIT                                                   155#    
   I*2  DIRIO                                                    145#    
   I*2  DIRMISS                                                  156#    
   I*2  DLCKFND                                                  252#    
   I*2  DLCKSRCH                                                 253#    

   I*2  DZROFLTS                                                 177#    
   I*2  ENQCVT                                                   254#    
   I*2  ENQNEW                                                   249#    
   I*2  ENQNOTQD                                                 255#    
   I*2  ENQWAIT                                                  250#    

   I*2  EXEC                                                     120#    
   I*2  EXTHIT                                                   157#    
   I*2  EXTMISS                                                  158#    
   I*2  FAULTS                                                   178#    
   I*2  FCP_CACHE                                                135#    

   I*2  FCP_CALLS                                                134#    
   I*2  FCP_CPU                                                  136#    
   I*2  FCP_READ                                                 137#    
   I*2  FCP_SIZE                                                 140#      285       302       317       320       324     
							         329       335       342       351       360       370     

STATNET                        					20-May-1983 10:18:51	VAX-11 FORTRAN V3.2-37              Page   5
								10-May-1983 10:16:27	CAD$VOLSET:[GARY.STATS.SOURCE]STATNET.FOR;21

							         381     
   I*2  FCP_WRITE                                                138#    

   I*2  FIDHIT                                                   159#    
   I*2  FIDMISS                                                  160#    
   I*2  FPG                                                      200#    
   I*2  FREECNT                                                  169#    
   I*2  GETDVI_EF                                                108#    

   I*2  HIB                                                      196#    
   I*2  HIBO                                                     197#    
   I*2  HISWPCNT                                                 215#    
   I*2  HIT                                                      152#    
   I*2  HOLECNT                                                  268#    

   I*2  HOLESUM                                                  272#    
   I*2  HOSWPCNT                                                 214#    
   I*2  IDLE                                                     124#    
   I*2  IJOBCNT                                                  126#    
   I*2  INT                                                      122#    

   I*2  IRPCNT                                                   267#    
   I*2  ISPAGCNT                                                 210#    
   I*2  ISWPCNT                                                  211#    
   I*2  KERNEL                                                   118#    
   I*2  KEY_SIZE                                                 114#    

   I*2  LEF                                                      194#    
   I*2  LEFO                                                     195#    
   I*2  LOCK_SIZE                                                260#      285       304       381     
   I*2  LOGNAM                                                   147#    
   I*2  LRPCNT                                                   273#    

   I*2  MBREADS                                                  148#    
   I*2  MBWRITES                                                 149#    
   I*2  MEM_SIZE                                                 172#      285       297       324       329       335     
							         342       351       360       370       381     
   I*2  MFYCNT                                                   170#    
   I*2  MISC_SIZE                                                164#      285       299       320       324       329     
							         335       342       351       360       370       381     

   I*2  MWAIT                                                    191#    
   I*2  NET_SIZE                                                 244#      285       303       370       381       403     
							         419     
   I*2  NUM_MODES                                                129#    
   I*2  OPEN                                                     154#    
   I*2  OPENS                                                    153#    

   I*2  OSWPCNT                                                  213#    
   I*2  PFW                                                      193#    
   I*2  PGFLT_SIZE                                               185#      285       301       329       335       342     
							         351       360       370       381     
   I*2  POOL_SIZE                                                280#      285       305     
   I*2  PREADIO                                                  179#    

   I*2  PREADS                                                   181#    
   I*2  PROCCNT                                                  212#    

STATNET                        					20-May-1983 10:18:51	VAX-11 FORTRAN V3.2-37              Page   6
								10-May-1983 10:16:27	CAD$VOLSET:[GARY.STATS.SOURCE]STATNET.FOR;21

   I*2  PWRITES                                                  182#    
   I*2  PWRITIO                                                  180#    
   I*2  QUOHIT                                                   161#    

   I*2  QUOMISS                                                  162#    
   I*2  RCVBUFFL                                                 238#      412     
   I*2  RDFLTS                                                   183#    
   I*2  REC_SIZE                                                 285#      306     
   I*2  RES                                                      230#    

   I*2  RESPONSE_SIZE                                            229#      285       360       370       381     
   I*2  SCH_SIZE                                                 205#      285       300       335       342       351     
							         360       370       381     
   I*2  SMALLCNT                                                 271#    
   I*2  SMALLHOLE                                                270#    
   I*2  SPLIT                                                    151#    

   I*2  SRPCNT                                                   274#    
   CHAR STANDARD_NEST_FILE                                       100       101#    
   I*2  SUPER                                                    119#    
   I*2  SUSP                                                     198#    
   I*2  SUSPO                                                    199#    

   I*2  SWAP_SIZE                                                217#      285       298       342       351       360     
							         370       381     
   I*2  SWAP_SPARES                                              218#    
   I*2  TIME_SIZE                                                223#      285       295       351       360       370     
							         381     
   I*2  TRCNGLOS                                                 239#      413     
   I*2  TURN                                                     150#    

   I*2  USER                                                     121#    
   I*2  WAIT_EF                                                  107#    


FUNCTIONS AND SUBROUTINES REFERENCED

  Type  Name                                                   References

   I*4  ML$L_PEEK                                                400       402       409       410       411       412     
							         413     
        PMS$GL_ARRLOCPK                                          394       409     
        PMS$GL_ARRTRAPK                                          395       410     
        PMS$GL_DEPLOCPK                                          396       411     
        PMS$GL_RCVBUFFL                                          397       412     

        PMS$GL_TRCNGLOS                                          398       413     


  +----------------------------------------------+
  |           KEY TO REFERENCE FLAGS             |
  |   =   - Value Modified                       |
  |   #   - Defining Reference                   |
  |   A   - Actual Argument, possibly modified   |
  |   D   - Data Initialization                  |
  |  (n)  - Number of occurrences on line        |
  +----------------------------------------------+

STATNET                        					20-May-1983 10:18:51	VAX-11 FORTRAN V3.2-37              Page   7
								10-May-1983 10:16:27	CAD$VOLSET:[GARY.STATS.SOURCE]STATNET.FOR;21




COMMAND QUALIFIERS

  FORTRAN /DEBUG/OBJECT=OBJ:STATNET/LIST=LIS:STATNET/CONT=99/CROSS/NOOPT SRC:STATNET

  /CHECK=(NOBOUNDS,OVERFLOW,NOUNDERFLOW)
  /DEBUG=(SYMBOLS,TRACEBACK)
  /STANDARD=(NOSYNTAX,NOSOURCE_FORM)
  /SHOW=(NOPREPROCESSOR,NOINCLUDE,MAP)
  /F77  /NOG_FLOATING  /I4  /NOOPTIMIZE  /WARNINGS  /NOD_LINES  /CROSS_REFERENCE  /NOMACHINE_CODE  /CONTINUATIONS=99


COMPILATION STATISTICS

  Run Time:           2.36 seconds
  Elapsed Time:       6.90 seconds
  Page Faults:        458
  Dynamic Memory:     842 pages
