User Tools

Site Tools


cdc:nos2.source:nam5871:xtermst

XTERMST

Table Of Contents

  • [00008] PROC XTERMST
  • [00070] PROC MCLRIL
  • [00071] PROC MSETIL
  • [00072] PROC OCTDIS
  • [00073] PROC OCTCON
  • [00074] PROC OMSG
  • [00075] FUNC XCDD C(10)
  • [00076] PROC XTRACE

Source Code

XTERMST.txt
  1. *DECK XTERMST
  2. USETEXT NIPDEF
  3. USETEXT NBT
  4. USETEXT PT
  5. USETEXT STATTAB
  6. USETEXT STATTB2
  7. USETEXT KDIS
  8. PROC XTERMST; # DAYFILE GLOBAL STATISTICS AT TERMINATION#
  9. *CALL OVLSTAT
  10. STARTIMS;
  11. #
  12. *1DC XTERMST
  13. * 1. PROC NAME AUTHOR DATE
  14. * XTERMST P.C.TAM 77/08/02
  15. *
  16. * 2. FUNCTIONAL DESCRIPTION.
  17. * THIS ROUTINE IS A SECONDARY OVERLAY CALLED WHENEVER NAM
  18. * SHUT DOWN TO DAYFILE GLOBAL STATISTICS.
  19. *
  20. * 3. METHOD USED.
  21. * A. THE FREQUENCY OF CALL OF ALL OVERLAYS ARE CONVERTED TO
  22. * OCTAL NUMBERS IN DISPLAY CODE AND WRITTEN TO THE DAYFILE.
  23. * B. THE VALUES OF ALL STATISTICS VARIABLE UNDER THE COMMON
  24. * STATTAB ARE CONVERTED TO OCTAL DISPLAY CODES AND DAYFILED.
  25. * C. REPEAT STEP B FOR MEMORY MANAGER STATISTICS.
  26. *
  27. * 4. ENTRY PARAMETERS.
  28. * NONE.
  29. *
  30. * 5. EXIT PARAMETERS.
  31. * NONE
  32. *
  33. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  34. * NIPDEF OPSIZE OVLSTAT STATTAB
  35. * NBT NETWORK BUFFER TABLE
  36. * PT GLOBAL COMDECK
  37. * STATTB2
  38. *
  39. * 7. ROUTINES CALLED.
  40. * MCLRIL CLEAR NIP/PIP INTERLOCK
  41. * MSETIL SET NIP/PIP INTERLOCK
  42. * OCTCON CONVERT A BINARY NUMBER INTO OCTAL DISPLAY
  43. * CODE NUMBER
  44. * OCTDIS CHECK A NUMBER FOR 00B"S AND CONVERT THEM
  45. * INTO 55B"S.
  46. * OMSG DAYFILE MESSAGE
  47. * XCDD CONVERT INTEGER TO DECIMAL DISPLAY
  48. * XTRACE RECORD PROCEDURE CALLS
  49. *
  50. * 8. DAYFILE MESSAGES.
  51. * A. *OVLNAMEXXX= XXXXXXXXXX*
  52. * B. *ST$XXXXX= XXXXXXXXXXXXXXXXXXXX*
  53. *
  54. * W A R N I N G - THIS ROUTINE IS LOADED WITH XCLOST, XENDNAM,
  55. * AND OSCEXIT, OR ENDRPV. THE SUM OF THE SIZES
  56. * OF XENDNAM, OSCEXIT, XCLOST AND XTERMST, OR
  57. * THAT OF XENDRPV, XCLOST AND XTERMST CANNOT
  58. * EXCEED THE SIZE OF THE PRIMARY
  59. *CALL OPSIZE
  60. *
  61. * THIS ROUTINE IS CALLED BY XENDNAM, OR XENDRPV.
  62. *
  63.  #
  64. STOPIMS;
  65.  
  66. # EXTERNAL VARIABLES #
  67.  
  68. XREF
  69. BEGIN
  70. PROC MCLRIL; # CLEAR NIP/PIP INTERLOCK #
  71. PROC MSETIL; # SET NIP/PIP INTERLOCK #
  72. PROC OCTDIS;
  73. PROC OCTCON;
  74. PROC OMSG;
  75. FUNC XCDD C(10); # CONVERT INTEGER TO DECIMAL DISPLAY #
  76. PROC XTRACE; # RECORD PROCEDURE CALLS #
  77. END
  78.  
  79.  
  80. # INTERNAL VARIABLES #
  81.  
  82.  
  83. BASED ARRAY OVLTMP;
  84. BEGIN
  85. ITEM OVLPGM C(0,0,7); # OVERLAY PGM NAME IN 7 CHAR #
  86. ITEM OVLCNT I(0,42,18); # NO OF TIMES THE OVERLAY CALLED#
  87. ITEM OVLWD0 U(0,0,WL);
  88. END
  89.  
  90.  
  91. BASED ARRAY ST$TAB S(1);
  92. ITEM ST$CNT U(0,0,WL);
  93.  
  94. ARRAY [0:STAB1NO] S(1);
  95. BEGIN
  96. ITEM ST$NMX1 C(0,0,5) =
  97. ["IDLN", "CNBC", "NOAP", "ACB",
  98. "ACBX", "AQ", "AQX", "NIB",
  99. "INB", "INC", "IDB",
  100. "IDC", "ONB", "ONC", "ODB",
  101. "ODC", "LNB", "LNC", "LDB",
  102. "LDC", "ENB", "ESB", "RCL",
  103. "LOOP", "NOL", "NOC", "NMS",
  104. "NSC", "NSI", "NDA", "NWR",
  105. "NBR", "NAW", "NGE", "NGS",
  106. "NPU", "NWA", "NHR", "NXS",
  107. "NXP", "TOL", "TMS", "TSC",
  108. "TSI", "TDA", "TWR", "TBR",
  109. "TAW", "TGE", "TGS", "TPU",
  110. "TWA", "THR", "TFL", "TMG",
  111. "TXS", "TXP", "TNI", "THI",
  112. "TT2", "TT3", "LOL", "LMS",
  113. "LSC", "LSI", "LDA", "LWR",
  114. "LBR", "LAW", "LGE", "LGS",
  115. "LPU", "LWA", "LHR", "LFL",
  116. "LMG", "LXS", "LXP", "LNI",
  117. "LHI", "LT2", "LT3", "MXS",
  118. "MNI", "MHI", "MT2", "MT3",
  119. "MXIB"];
  120. END
  121.  
  122. ARRAY ST$REJ [0:3] S(4);
  123. BEGIN
  124. ITEM ST$TYP C(0,00,10) = ["NET IVT RE", "NET PRU RE",
  125. "PIP IVT RE", "PIP PRU RE"];
  126. ITEM ST$FIL1 C(1,00,10) = [4("JECTS = ")];
  127. ITEM ST$NUMREJ C(2,00,04);
  128. ITEM ST$FIL2 C(2,24,02) = [4(", ")];
  129. ITEM ST$ET C(2,36,02);
  130. ITEM ST$FIL3 C(2,48,02) = [4(", ")];
  131. ITEM ST$FIL4 C(3,00,05) = [4("NN = ")];
  132. ITEM ST$NODE C(3,30,03);
  133. ITEM ST$REJEND U(3,48,12) = [4(0)];
  134. END
  135.  
  136.  
  137. ARRAY [0:STAB2NO] S(1);
  138. BEGIN
  139. ITEM ST$NMX2 C(0,0,5) =
  140. ["GET", "GNB", "REL", "RNB",
  141. "FL", "FLW", "FLX",
  142. "FLWX", "FLT", "FWT",
  143. "FBT", "GBWM", "GBGC"];
  144. END
  145.  
  146. ARRAY DYFL1 S(3);
  147. BEGIN
  148. ITEM OVLPRGM C(0,0,WC);
  149. ITEM OVLEQU C(0,48,1);
  150. ITEM OVLFREQ C(1,0,WC);
  151. ITEM FILL2A U(2,0,WL)=[0];
  152. END
  153.  
  154. ARRAY DYFL2 S(4);
  155. BEGIN
  156. ITEM FILL1B C(0,0,WC)=["ST$ - "];
  157. ITEM STNAME C(0,18,5);
  158. ITEM STVALU1 C(1,0,WC);
  159. ITEM STVALU2 C(2,0,WC);
  160. ITEM FILL2B U(3,0,WL)=[0];
  161. END
  162.  
  163. ARRAY TWOWD S(2);
  164. BEGIN
  165. ITEM WORD1 C(0,0,WC);
  166. ITEM WORD2 C(1,0,WC);
  167. END
  168.  
  169. DEF NUMOVL #OVLNUM-1#; # NUMBER OF OVERLAYS - 1 #
  170.  
  171. ITEM I,J;
  172.  
  173. #**********************************************************************#
  174.  
  175. BEGIN
  176. CONTROL IFEQ STAT,1;
  177.  
  178. CONTROL IFEQ DEBUG,1;
  179. XTRACE("XTERM") ;
  180. CONTROL FI;
  181. #
  182.   LOG NO OF TIMES EACH OVERLAY GET CALLED
  183. #
  184. P<OVLTMP> = LOC(HAPFAILS); # 1ST OVERLAY IN OVLSTAT TABLE #
  185. FOR I = 0 STEP 1 UNTIL NUMOVL # LOOP TO DAYFILE OVLSTAT TABLE #
  186. DO # STATISTICS #
  187. BEGIN
  188. OCTDIS(OVLWD0[I], DYFL1);
  189. OVLEQU[0] = "=";
  190. OCTCON(OVLCNT[I],TWOWD);
  191. OVLFREQ = WORD2;
  192. OMSG(DYFL1,0);
  193. IF KNAMRS[0]
  194. THEN
  195. OVLCNT[I] = 0;
  196. END
  197. #
  198.   LOG STATISTICS FROM NIP INTERNAL PROCS
  199. #
  200. P<ST$TAB> = LOC(STTBM)+ 1 ;
  201. FOR I = 0 STEP 1 UNTIL STAB1NO
  202. DO
  203. BEGIN # LOOP TO DAYFILE ALL STATISTICS #
  204. STNAME = ST$NMX1[I]; # COLLECTED IN STATTAB #
  205. OCTCON(ST$CNT[I],TWOWD);
  206. STVALU1 = WORD1;
  207. STVALU2 = WORD2;
  208. OMSG(DYFL2,0);
  209. IF KNAMRS[0]
  210. THEN
  211. ST$CNT[I] = 0;
  212. END
  213. #
  214.   LOG STATISTICS FROM MEMORY MANAGER
  215. #
  216. P<ST$TAB> = LOC(ST$GET);
  217. FOR I = 0 STEP 1 UNTIL STAB2NO
  218. DO
  219. BEGIN # LOOP TO LOG ALL STATISTICS FROM MEMORY M#
  220. STNAME = ST$NMX2[I];
  221. OCTCON(ST$CNT[I], TWOWD);
  222. STVALU1 = WORD1;
  223. STVALU2 = WORD2;
  224. OMSG(DYFL2,0);
  225. IF KNAMRS[0]
  226. THEN
  227. ST$CNT[I] = 0;
  228. END
  229. #
  230.   GET STATISTICS FOR NUMBER OF NPU AND PIP REJECTS
  231. #
  232. FOR I = 0 STEP NBTFETNO UNTIL NBTMAXID
  233. DO
  234. BEGIN
  235. IF NBTIUF[I]
  236. THEN # NBT ENTRY IS IN USE #
  237. BEGIN
  238. ST$ET[0] = NBTET[I]; # EQUIPMENT MNEUMONIC #
  239. J = XCDD(NBTHN[I]);# CONVERT HOST NODE NUMBER TO DISPLAY DEC #
  240. ST$NODE[0] = C<7,3>J; # HOST NODE NUMBER IN DISPLAY DECIMAL #
  241. ST$TYP[0] = "NET IVT RE";
  242. J = XCDD(NBTNIREJ[I+4]); # CONVERT NO OF REJECTS TO DIS DEC #
  243. ST$NUMREJ[0] = C<6,4>J; # NUMBER OF NPU REJECTS OF IVT DATA #
  244. OMSG(ST$REJ,0); # ISSUE DAYFILE MESSAGE #
  245. ST$TYP[0] = "NET PRU RE";
  246. J = XCDD(NBTNPREJ[I+4]); # CONVERT NO OF REJECTS TO DIS DEC #
  247. ST$NUMREJ[0] = C<6,4>J; # NUMBER OF NPU REJECTS OF PRU DATA #
  248. OMSG(ST$REJ,0); # ISSUE DAYFILE MESSAGE #
  249. ST$TYP[0] = "PIP IVT RE";
  250. J = XCDD(NBTPIREJ[I+5]); # CONVERT NO OF REJECTS TO DIS DEC #
  251. ST$NUMREJ[0] = C<6,4>J; # NUMBER OF PIP REJECTS OF IVT DATA #
  252. OMSG(ST$REJ,0); # ISSUE DAYFILE MESSAGE #
  253. ST$TYP[0] = "PIP PRU RE";
  254. J = XCDD(NBTPPREJ[I+5]); # CONVERT NO OF REJECTS TO DIS DEC #
  255. ST$NUMREJ[0] = C<6,4>J; # NUMBER OF PIP REJECTS OF PRU DATA #
  256. OMSG(ST$REJ,0); # ISSUE DAYFILE MESSAGE #
  257. IF (NBTNIREJ[I+4] + NBTNPREJ[I+4] NQ 0) AND
  258. (NOT NAMFAIL )
  259. THEN # NEED TO ZERO NO OF NPU REJECTS #
  260. BEGIN
  261. MSETIL(0); # SET NIP/PIP INTERLOCK #
  262. NBTNIREJ[I+4] = 0; # CLEAR NUMBER OF NPU IVT REJECTS #
  263. NBTNPREJ[I+4] = 0; # CLEAR NUMBER OF NPU PRU REJECTS #
  264. MCLRIL; # CLEAR NIP/PIP INTERLOCK #
  265. END
  266. NBTPIREJ[I+5] = 0; # CLEAR NUMBER OF PIP IVT REJECTS #
  267. NBTPPREJ[I+5] = 0; # CLEAR NUMBER OF PIP PRU REJECTS #
  268. END
  269. END
  270.  
  271. CONTROL FI;
  272. END # XTERMST #
  273. TERM
cdc/nos2.source/nam5871/xtermst.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator