User Tools

Site Tools


cdc:nos2.source:nam5871:cssidc

CSSIDC

Table Of Contents

  • [00005] PROC CSSIDC
  • [00006] ISSUE DEBUG COMMAND.
  • [00009] ISSUE DEBUG COMMAND.
  • [00027] PROC NETDBG
  • [00028] PROC NETDMB
  • [00029] PROC NETREL
  • [00030] PROC NETSTC
  • [00041] PROC SSSPSI

Source Code

CSSIDC.txt
  1. *DECK CSSIDC
  2. USETEXT TEXTCS
  3. USETEXT TEXTSS
  4. USETEXT TXTAPSS
  5. PROC CSSIDC;
  6. # TITLE - ISSUE DEBUG COMMAND. #
  7. BEGIN
  8. #
  9. ** CSSIDC - ISSUE DEBUG COMMAND.
  10. *
  11. * D.K. ENDO 82/05/28
  12. *
  13. * THIS PROCEDIRE ACTIONS DEBUG COMMANDS FROM THE HOP.
  14. *
  15. * PROC CSSIDC
  16. *
  17. * ENTRY 1. HOP DEBUG COMMAND SM-S.
  18. *
  19. * EXIT 1. APPROPRIATE ACTION TAKEN.
  20. *
  21. #
  22. #
  23. **** PROC CSSIDC - XREF LIST BEGINS.
  24. #
  25. XREF
  26. BEGIN
  27. PROC NETDBG; # TURNS AIP TRACE ON OR OFF #
  28. PROC NETDMB; # DUMPS APPLICATION-S FIELD LENGTH #
  29. PROC NETREL; # RELEASES THE AIP TRACE FILE #
  30. PROC NETSTC; # CLEARS AND/OR STARTS STATISTICS #
  31. END
  32. #
  33. ****
  34. #
  35. #
  36. **** PROC CSSIDC - DEBUG XREF LIST BEGINS.
  37. #
  38. $BEGIN
  39. XREF
  40. BEGIN
  41. PROC SSSPSI; # PREPARE SS STATISTICS INFORMATION. #
  42. END
  43. $END
  44. #
  45. ****
  46. #
  47.  
  48.  
  49. ITEM STATIS; # STATUS RETURNED FROM, NET PROC-S #
  50.  
  51.  
  52. #
  53.   THIS ARRAY DEFINES THE FIELDS IN THE DUMP I.D. THIS IS SET WHEN
  54.   NVF RECEIVES A HOP/DU/U SM FROM NAM.
  55. #
  56. ARRAY DUMP$ID [00:00] S(1);
  57. BEGIN
  58. ITEM DID$NIN U(00,42,09); # NETWORK INVOCATION NUMBER #
  59. ITEM DID$PID U(00,51,06); # PROCDUCT I.D.(FOR NVF) #
  60. ITEM DID$DPN U(00,57,03); # DUMP NUMBER #
  61. ITEM DID$WORD I(00,00,60) = [0];
  62. END
  63.  
  64.  
  65. #
  66. * THIS ARRAY DEFINES THE LFN USED FOR THE NETREL CALL.
  67. #
  68. ARRAY NTRL$LFN [00:00] S(1);
  69. BEGIN
  70. ITEM NRL$NAM C(00,00,04) = ["NRF2"];
  71. ITEM NRL$ZFIL U(00,24,36) = [0];
  72. END
  73. CONTROL EJECT;
  74. # #
  75. # CSSIDC CODE BEGINS HERE #
  76. # #
  77. #
  78. * IF THIS SM IS HOP/DU/U, THEN SET THE DUMP I.D. AND ISSUE THE DUMP
  79. * REQUEST. IF THE DUMP I.D. IS GREATER THAN OR EQUAL TO SIX, THEN
  80. * SET IT TO ZERO, ELSE INCREMENT IT BY ONE.
  81. #
  82. IF PFCSFC[0] EQ HOPDU
  83. THEN
  84. BEGIN
  85. DID$NIN[0] = CRNT$NIN;
  86. DID$PID[0] = CSPID$;
  87. DID$DPN[0] = CRNT$DPN;
  88.  
  89. NETDMB(DUMP$ID,FALSE);
  90.  
  91. IF CRNT$DPN GQ 6
  92. THEN
  93. BEGIN
  94. CRNT$DPN = 0;
  95. END
  96. ELSE
  97. BEGIN
  98. CRNT$DPN = CRNT$DPN + 1;
  99. END
  100. END
  101.  
  102.  
  103. #
  104. * IF THIS SM IS HOP/TRCE/U, THEN CALL NETDBG TO TURN ALL TRACING
  105. * ON.
  106. #
  107. ELSE IF PFCSFC[0] EQ HOPTRCE
  108. THEN
  109. BEGIN
  110. NETDBG(FALSE,FALSE,STATIS);
  111. END
  112.  
  113.  
  114. #
  115. * IF THIS SM IS HOP/NOTR/U, THEN CALL NETDBG TO TURN ALL TRACING
  116. * OFF.
  117. #
  118. ELSE IF PFCSFC[0] EQ HOPNOTR
  119. THEN
  120. BEGIN
  121. NETDBG(TRUE,TRUE,STATIS);
  122. END
  123.  
  124.  
  125. #
  126. * IF THIS SM IS HOP/RS/U, THEN CALL NETSTC TO CLEAR THE CURRENT
  127. * STATISTICS AND RESTART THE STATISTICS GATHERING.
  128. #
  129. ELSE IF PFCSFC[0] EQ HOPRS
  130. THEN
  131. BEGIN
  132. $BEGIN
  133. SSSPSI; # SEND STAT INFO TO STAT FILE (ZZZZZSN) #
  134. $END
  135. NETSTC(FALSE,STATIS);
  136.  
  137. NETSTC(TRUE,STATIS);
  138. END
  139.  
  140.  
  141. #
  142. * IF THIS SM IS HOP/REL/U, THEN CALL NETREL TO RELEASE THE CURRENT
  143. * DEBUG LOG FILE.
  144. #
  145. ELSE IF PFCSFC[0] EQ HOPREL
  146. THEN
  147. BEGIN
  148. IF MC NQ 0
  149. THEN
  150. BEGIN
  151. NETREL(NTRL$LFN,0,FALSE);
  152. END
  153. END
  154.  
  155.  
  156. #
  157. * IF THIS SM IS HOP/DB/U,THEN SET THE DEBUG FLAG IN THE NVF CONTROL
  158. * BLOCK.
  159. #
  160. ELSE IF PFCSFC[0] EQ HOPDB
  161. THEN
  162. BEGIN
  163. DBGFLAG = TRUE;
  164. END
  165.  
  166.  
  167. #
  168. * IF THIS SM IS HOP/DE/U, THEN CLEAR THE DEBUG FLAG IN THE NVF
  169. * CONTROL BLOCK.
  170. #
  171. ELSE IF PFCSFC[0] EQ HOPDE
  172. THEN
  173. BEGIN
  174. DBGFLAG = FALSE;
  175. END
  176.  
  177.  
  178. RETURN; # **** RETURN **** #
  179.  
  180. END # CSSIDC #
  181. TERM
cdc/nos2.source/nam5871/cssidc.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator