Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. tstpoint.h
  5. Abstract:
  6. Public interfaces for creating and manipulating cluster test points
  7. Author:
  8. John Vert (jvert) 11/25/1996
  9. Revision History:
  10. --*/
  11. #ifdef CLUSTER_TESTPOINT
  12. typedef enum _TESTPOINT_TRIGGER {
  13. TestTriggerNever=0,
  14. TestTriggerAlways=1,
  15. TestTriggerOnce=2,
  16. TestTriggerTargetCount=3
  17. } TESTPOINT_TRIGGER;
  18. typedef enum _TESTPOINT_ACTION {
  19. TestActionTrue=0,
  20. TestActionExit=1,
  21. TestActionDebugBreak=2
  22. } TESTPOINT_ACTION;
  23. typedef WCHAR TESTPOINT_NAME[64];
  24. typedef struct _TESTPOINT_ENTRY {
  25. TESTPOINT_NAME TestPointName;
  26. TESTPOINT_TRIGGER Trigger;
  27. TESTPOINT_ACTION Action;
  28. DWORD HitCount;
  29. DWORD TargetCount;
  30. } TESTPOINT_ENTRY, *PTESTPOINT_ENTRY;
  31. //SS: when you add a testpoint, add the corresponding name in init\tstpoint.c
  32. typedef enum _TESTPOINT {
  33. TestpointJoinFailPetition=0,
  34. TpFailNmJoinCluster=1,
  35. TpFailRegisterIntraClusterRpc=2,
  36. TpFailJoinCreateBindings=3,
  37. TpFailJoinPetitionForMembership=4,
  38. TpFailNmJoin=5,
  39. TpFailDmJoin=6,
  40. TpFailApiInitPhase1=7,
  41. TpFailFmJoinPhase1=8,
  42. TpFailDmUpdateJoinCluster=9,
  43. TpFailEvInitialize=10,
  44. TpFailNmJoinComplete=11,
  45. TpFailApiInitPhase2=12,
  46. TpFailFmJoinPhase2=13,
  47. TpFailLogCommitSize=14,
  48. TpFailClusterShutdown=15,
  49. TpFailLocalXsaction=16,
  50. TpFailOnlineResource=17,
  51. TpFailSecurityInit=18,
  52. TpFailOmInit=19,
  53. TpFailEpInit=20,
  54. TpFailDmInit=21,
  55. TpFailNmInit=22,
  56. TpFailGumInit=23,
  57. TpFailFmInit=24,
  58. TpFailLmInit=25,
  59. TpFailCpInit=26,
  60. TpFailNmPauseNode=27,
  61. TpFailNmResumeNode=28,
  62. TpFailNmEvictNodeAbort=29,
  63. TpFailNmEvictNodeHalt=30,
  64. TpFailNmCreateNetwork=31,
  65. TpFailNmSetNetworkPriorityOrder=32,
  66. TpFailNmSetNetworkPriorityOrder2=33,
  67. TpFailNmSetNetworkCommonProperties = 34,
  68. TpFailNmSetInterfaceInfoAbort=35,
  69. TpFailNmSetInterfaceInfoHalt=36,
  70. TpFailPreMoveWithNodeDown=37,
  71. TpFailPostMoveWithNodeDown=38,
  72. TpFailFormNewCluster=39,
  73. TestpointMax=40
  74. } TESTPOINT;
  75. #define TESTPT(x) if (TestpointCheck(x))
  76. VOID
  77. TestpointInit(
  78. VOID
  79. );
  80. VOID
  81. TestpointDeInit(
  82. VOID
  83. );
  84. BOOL
  85. TestpointCheck(
  86. IN TESTPOINT Testpoint
  87. );
  88. #else // CLUSTER_TESTPOINT
  89. #define TestpointInit()
  90. #define TestpointDeInit()
  91. #define TESTPT(x) if (0)
  92. #endif // CLUSTER_TESTPOINT