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.

77 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. coded.h
  5. Abstract:
  6. This is the include file for the code description dumper, and it's
  7. associated utilities.
  8. Author:
  9. Dave Hastings (daveh) creation-date 20-May-1996
  10. Revision History:
  11. --*/
  12. #define CODEGEN_PROFILE_REV 1
  13. typedef struct _CodeDescriptionHeader {
  14. ULONG NextCodeDescriptionOffset;
  15. ULONG CommandLineOffset;
  16. ULONG ProcessorType;
  17. ULONG DumpFileRev;
  18. ULONG StartTime;
  19. } CODEDESCRIPTIONHEADER, *PCODEDESCRIPTIONHEADER;
  20. typedef struct _CodeDescription {
  21. ULONG NextCodeDescriptionOffset;
  22. ULONG TypeTag;
  23. ULONG NativeCodeOffset;
  24. ULONG NativeCodeSize;
  25. ULONG IntelCodeOffset;
  26. ULONG IntelCodeSize;
  27. ULONG NativeAddress;
  28. ULONG IntelAddress;
  29. ULONG SequenceNumber;
  30. ULONG ExecutionCount;
  31. ULONG CreationTime;
  32. } CODEDESCRIPTION, *PCODEDESCRIPTION;
  33. #define PROFILE_CODEDESCRIPTIONS 0x00000001
  34. #define PROFILE_CD_CREATE_DESCRIPTIONFILE 0x00000001
  35. #define PROFILE_CD_CLOSE_DESCRIPTIONFILE 0x00000002
  36. #define PROFILE_TAG_CODEDESCRIPTION 0x0
  37. #define PROFILE_TAG_EOF 0xFFFFFFFF
  38. #define PROFILE_TAG_TCFLUSH 0xFFFFFFFE
  39. #define PROFILE_TAG_TCALLOCFAIL 0xFFFFFFFD
  40. extern ULONG ProfileFlags;
  41. extern ULONG CodeDescriptionFlags;
  42. VOID
  43. InitCodegenProfile(
  44. VOID
  45. );
  46. VOID
  47. TerminateCodegenProfile(
  48. VOID
  49. );
  50. VOID
  51. DumpCodeDescriptions(
  52. BOOL TCFlush
  53. );
  54. VOID
  55. DumpAllocFailure(
  56. VOID
  57. );