Source code of Windows XP (NT5)
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.

79 lines
1.8 KiB

  1. // fsdiag.h
  2. #ifndef _FSDIAG_
  3. #define _FSDIAG_
  4. #define MULTI_LEVEL_ZONES
  5. #include <mlzdbg.h>
  6. #if defined(_DEBUG)
  7. VOID T120DiagnosticCreate(VOID);
  8. VOID T120DiagnosticDestroy(VOID);
  9. #define TRACE_OUT_EX(z,s) (MLZ_TraceZoneEnabled(z) || MLZ_TraceZoneEnabled(MLZ_FILE_ZONE)) ? (MLZ_TraceOut s) : 0
  10. #else
  11. #define T120DiagnosticCreate()
  12. #define T120DiagnosticDestroy()
  13. #define DEBUG_FILEZONE(z)
  14. #define TRACE_OUT_EX(z,s)
  15. #endif // _DEBUG
  16. #ifdef _DEBUG
  17. enum
  18. {
  19. ZONE_T120_MCSNC = BASE_ZONE_INDEX,
  20. ZONE_T120_GCCNC, // GCC Provider
  21. ZONE_T120_MSMCSTCP,
  22. ZONE_T120_SAP, // GCC App SAP and Control SAP
  23. ZONE_T120_APP_ROSTER,
  24. ZONE_T120_CONF_ROSTER,
  25. ZONE_T120_REGISTRY, // GCC App Registry
  26. ZONE_T120_MEMORY,
  27. ZONE_T120_UTILITY,
  28. ZONE_GCC_NC, // GCC Node Controller
  29. ZONE_GCC_NCI, // GCC Node Controller Interface INodeController
  30. ZONE_T120_T123PSTN,
  31. };
  32. extern UINT MLZ_FILE_ZONE;
  33. #define DEBUG_FILEZONE(z) static UINT MLZ_FILE_ZONE = (z)
  34. #endif // _DEBUG
  35. #endif // _FSDIAG_
  36. // lonchanc: this must be outside the _FSDIAG_ protection.
  37. #if defined(_DEBUG) && defined(INIT_DBG_ZONE_DATA)
  38. static const PSTR c_apszDbgZones[] =
  39. {
  40. "T.120", // debug zone module name
  41. DEFAULT_ZONES
  42. TEXT("MCS"), // ZONE_T120_MCSNC
  43. TEXT("GCC"), // ZONE_T120_GCCNC
  44. TEXT("TCP"), // ZONE_T120_MSMCSTCP
  45. TEXT("SAP"), // ZONE_T120_SAP
  46. TEXT("A-Roster"), // ZONE_T120_APP_ROSTER
  47. TEXT("C-Roster"), // ZONE_T120_CONF_ROSTER
  48. TEXT("Registry"), // ZONE_T120_REGISTRY
  49. TEXT("Memory Tracking"),// ZONE_T120_MEMORY
  50. TEXT("Common"), // ZONE_T120_UTILITY
  51. TEXT("GCC NC"), // ZONE_GCC_NC
  52. TEXT("GCC NC Intf"), // ZONE_GCC_NCI
  53. TEXT("T123 PSTN"), // ZONE_T120_T123PSTN
  54. };
  55. UINT MLZ_FILE_ZONE = ZONE_T120_UTILITY;
  56. #endif // _DEBUG && INIT_DBG_ZONE_DATA