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.

77 lines
1.8 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Module: perf.d
  4. //
  5. // Description:
  6. //
  7. //
  8. //@@BEGIN_MSINTERNAL
  9. //
  10. // History: Date Author Comment
  11. // --------------------------------------------------------------
  12. // 01/02/01 ArthurZ Created
  13. //
  14. //@@END_MSINTERNAL
  15. //---------------------------------------------------------------------------
  16. //
  17. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  18. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  19. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  20. // PURPOSE.
  21. //
  22. // Copyright (c) 1995-1999 Microsoft Corporation. All Rights Reserved.
  23. //
  24. //---------------------------------------------------------------------------
  25. #include <wmistr.h>
  26. #include <evntrace.h>
  27. extern ULONG TraceEnable;
  28. #define PerfInstrumentationEnabled() (TraceEnable != 0)
  29. #define NULL_INSTANCE_ID 0
  30. #define KMIXER_SOURCE_GLITCH 2
  31. #define PORTCLS_SOURCE_GLITCH 3
  32. #define PERFGLITCH_PORTCLSOK 0
  33. #define PERFGLITCH_PORTCLSGLITCH 1
  34. VOID
  35. PerfRegisterProvider (
  36. IN PDEVICE_OBJECT DeviceObject
  37. );
  38. VOID
  39. PerfUnregisterProvider (
  40. IN PDEVICE_OBJECT DeviceObject
  41. );
  42. NTSTATUS
  43. PerfWmiDispatch (
  44. IN PDEVICE_OBJECT DeviceObject,
  45. IN PIRP Irp
  46. );
  47. VOID
  48. PerfLogInsertSilenceGlitch (
  49. IN ULONG_PTR InstanceId,
  50. IN ULONG Type,
  51. IN LONGLONG CurrentTime,
  52. IN LONGLONG PreviousTime
  53. );
  54. VOID
  55. PerfLogDMAGlitch (
  56. IN ULONG_PTR InstanceId,
  57. IN ULONG Type,
  58. IN LONGLONG CurrentTime,
  59. IN LONGLONG PreviousTime
  60. );
  61. //---------------------------------------------------------------------------
  62. // End of File: perf.c
  63. //---------------------------------------------------------------------------