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.

88 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. wmiTrace.h
  5. Abstract:
  6. WMI-based TRACEing kd extension header file
  7. Author:
  8. Glenn R. Peterson (glennp) 2000 Apr 27
  9. Revision History:
  10. --*/
  11. #ifndef _WMITRACE_H
  12. #define _WMITRACE_H
  13. //
  14. // Data Structures
  15. //
  16. typedef struct sttWmiTracingKdSortEntry
  17. {
  18. ULONGLONG Address;
  19. union {
  20. LARGE_INTEGER Key;
  21. ULONGLONG Keyll; // Sort Key 2
  22. };
  23. ULONG SequenceNo; // Sort Key 1
  24. ULONG Ordinal; // Sort Key 3
  25. ULONG Offset;
  26. ULONG Length;
  27. WMI_HEADER_TYPE HeaderType;
  28. WMI_BUFFER_SOURCE BufferSource;
  29. USHORT CpuNo;
  30. } WMITRACING_KD_SORTENTRY, *PWMITRACING_KD_SORTENTRY;
  31. //
  32. // Procedure Parameters
  33. //
  34. typedef ULONGLONG (__cdecl *WMITRACING_KD_FILTER) (
  35. PVOID UserContext,
  36. const PEVENT_TRACE pstHeader
  37. );
  38. typedef int (__cdecl *WMITRACING_KD_COMPARE) (
  39. const WMITRACING_KD_SORTENTRY *SortElement1,
  40. const WMITRACING_KD_SORTENTRY *SortElement2
  41. );
  42. typedef void (__cdecl *WMITRACING_KD_OUTPUT) (
  43. PVOID UserContext,
  44. PLIST_ENTRY GuidListHeadPtr,
  45. const WMITRACING_KD_SORTENTRY *SortInfo,
  46. const PEVENT_TRACE pstEvent
  47. );
  48. //
  49. // Procedures
  50. //
  51. VOID
  52. wmiTraceDllInit(
  53. PWINDBG_EXTENSION_APIS64 lpExtensionApis,
  54. USHORT MajorVersion,
  55. USHORT MinorVersion
  56. );
  57. VOID
  58. wmiLogDump(
  59. ULONG LoggerId,
  60. PVOID UserContext,
  61. PLIST_ENTRY GuidListHeadPtr,
  62. WMITRACING_KD_FILTER Filter,
  63. WMITRACING_KD_COMPARE Compare,
  64. WMITRACING_KD_OUTPUT Output
  65. );
  66. #endif