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.

84 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. pooltrc.h
  5. Abstract:
  6. This file declares private structures and functions used to implement
  7. STREAMS NonPaged Pool usage tracing.
  8. Author:
  9. Mike Massa (mikemas) January 10, 1992
  10. Revision History:
  11. Who When What
  12. -------- -------- ----------------------------------------------
  13. mikemas 01-10-92 created
  14. Notes:
  15. --*/
  16. #ifndef _POOLTRC_INCLUDED_
  17. #define _POOLTRC_INCLUDED_
  18. #if DBG
  19. /*
  20. * NonPaged Pool Usage Debugging Macros
  21. *
  22. */
  23. #define ExAllocatePool(P, N) StrmAllocatePool(P, N, __LINE__, __FILE__)
  24. #if defined(ExFreePool)
  25. #undef ExFreePool
  26. #endif
  27. #define ExFreePool(P) StrmFreePool(P, __LINE__, __FILE__)
  28. PVOID
  29. StrmAllocatePool(
  30. IN POOL_TYPE PoolType,
  31. IN ULONG NumberOfBytes,
  32. IN int line,
  33. IN char *file
  34. );
  35. VOID
  36. StrmFreePool(
  37. IN PVOID P,
  38. IN int line,
  39. IN char *file
  40. );
  41. VOID
  42. StrmListOutstandingPoolBuffers(
  43. VOID
  44. );
  45. VOID
  46. StrmFlushPoolTraceTable(
  47. VOID
  48. );
  49. #else
  50. #if POOL_TAGGING
  51. #define ExAllocatePool(P, N) ExAllocatePoolWithTag(P, N, 'mrtS' )
  52. #endif
  53. #endif //DBG
  54. #endif //_POOLTRC_INCLUDED_