}\r
\r
/* Device ID is "IBA\SID_<sid> where <sid> is the IPoIB Service ID. */\r
- p_string = ExAllocatePool( PagedPool, IOU_DEV_ID_SIZE );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, IOU_DEV_ID_SIZE, 'didq' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR, \r
return STATUS_NO_SUCH_DEVICE;\r
}\r
\r
- p_string = ExAllocatePool( PagedPool, IOU_HW_ID_SIZE );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, IOU_HW_ID_SIZE, 'dihq' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR, \r
\r
UNUSED_PARAM( p_dev_obj );\r
\r
- p_string = ExAllocatePool( PagedPool, sizeof(IOU_COMPAT_ID) );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, sizeof(IOU_COMPAT_ID), 'dicq' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR, \r
}\r
\r
/* The instance ID is the port GUID. */\r
- p_string = ExAllocatePool( PagedPool, sizeof(WCHAR) * 33 );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, sizeof(WCHAR) * 33, 'diuq' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR, \r
}\r
\r
/* The instance ID is the port GUID. */\r
- p_string =\r
- ExAllocatePool( PagedPool, sizeof(WCHAR) * sizeof(p_ext->desc) );\r
+ p_string = ExAllocatePoolWithTag( PagedPool,\r
+ sizeof(WCHAR) * sizeof(p_ext->desc),\r
+ 'sedq' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR, \r
return STATUS_NO_SUCH_DEVICE;\r
}\r
\r
- p_string = ExAllocatePool( PagedPool, IOU_LOCATION_SIZE );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, IOU_LOCATION_SIZE, 'colq' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR, \r
\r
*p_action = IrpComplete;\r
\r
- p_bus_info = ExAllocatePool( PagedPool, sizeof(PNP_BUS_INFORMATION) );\r
+ p_bus_info = ExAllocatePoolWithTag( PagedPool, sizeof(PNP_BUS_INFORMATION), 'subq' );\r
if( !p_bus_info )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR,\r
}\r
\r
/* Device ID is "IBA\SID_<sid> where <sid> is the IPoIB Service ID. */\r
- p_string = ExAllocatePool( PagedPool, sizeof(IPOIB_DEVICE_ID) );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, sizeof(IPOIB_DEVICE_ID), 'vedq' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR,\r
return STATUS_NO_SUCH_DEVICE;\r
}\r
\r
- p_string = ExAllocatePool( PagedPool, sizeof(IPOIB_HARDWARE_ID) );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, sizeof(IPOIB_HARDWARE_ID), 'ihqp' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR,\r
\r
UNUSED_PARAM( p_dev_obj );\r
\r
- p_string = ExAllocatePool( PagedPool, sizeof(IPOIB_COMPAT_ID) );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, sizeof(IPOIB_COMPAT_ID), 'icqp' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR,\r
}\r
\r
/* The instance ID is the port GUID. */\r
- p_string = ExAllocatePool( PagedPool, sizeof(WCHAR) * 17 );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, sizeof(WCHAR) * 17, 'iuqp' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR,\r
\r
\r
/* The instance ID is the port GUID. */\r
- p_string = ExAllocatePool( PagedPool, sizeof(IPOIB_DESCRIPTION) );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, sizeof(IPOIB_DESCRIPTION), 'edqp' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR,\r
return STATUS_INSUFFICIENT_RESOURCES;\r
}\r
\r
- p_string = ExAllocatePool( PagedPool, size );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, size, 'olqp' );\r
if( !p_string )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR,\r
\r
*p_action = IrpComplete;\r
\r
- p_bus_info = ExAllocatePool( PagedPool, sizeof(PNP_BUS_INFORMATION) );\r
+ p_bus_info = ExAllocatePoolWithTag( PagedPool, sizeof(PNP_BUS_INFORMATION), 'ibqp' );\r
if( !p_bus_info )\r
{\r
BUS_TRACE_EXIT( BUS_DBG_ERROR,\r
if( pageable )\r
{\r
CL_ASSERT( KeGetCurrentIrql() < DISPATCH_LEVEL );\r
- return( ExAllocatePool( PagedPool, size ) );\r
+ return( ExAllocatePoolWithTag( PagedPool, size, 'virp' ) );\r
}\r
else\r
{\r
CL_ASSERT( KeGetCurrentIrql() <= DISPATCH_LEVEL );\r
- return( ExAllocatePool( NonPagedPool, size ) );\r
+ return( ExAllocatePoolWithTag( NonPagedPool, size, 'virp' ) );\r
}\r
}\r
\r
IN void* const p_memory )\r
{\r
CL_ASSERT( KeGetCurrentIrql() <= DISPATCH_LEVEL );\r
- ExFreePool( p_memory );\r
+ ExFreePoolWithTag( p_memory, 'virp' );\r
}\r
alloc_size += (sizeof(PDEVICE_OBJECT) * p_old_rel->Count);\r
\r
/* Allocate the new relations structure. */\r
- p_rel = ExAllocatePool( PagedPool, alloc_size );\r
+ p_rel = ExAllocatePoolWithTag( PagedPool, alloc_size, 'ralc' );\r
p_irp->IoStatus.Information = (ULONG_PTR)p_rel;\r
if( !p_rel )\r
{\r
return STATUS_NO_SUCH_DEVICE;\r
}\r
\r
- p_string = ExAllocatePool( PagedPool, IOC_DEV_ID_SIZE );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, IOC_DEV_ID_SIZE, 'didq' );\r
if( !p_string )\r
{\r
IOU_PRINT_EXIT( TRACE_LEVEL_ERROR, IOU_DBG_ERROR,\r
return STATUS_NO_SUCH_DEVICE;\r
}\r
\r
- p_string = ExAllocatePool( PagedPool, IOC_HW_ID_SIZE );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, IOC_HW_ID_SIZE, 'ihqi' );\r
if( !p_string )\r
{\r
IOU_PRINT_EXIT( TRACE_LEVEL_ERROR, IOU_DBG_ERROR,\r
return STATUS_NO_SUCH_DEVICE;\r
}\r
\r
- p_string = ExAllocatePool( PagedPool, IOC_COMPAT_ID_SIZE );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, IOC_COMPAT_ID_SIZE, 'icqi' );\r
if( !p_string )\r
{\r
IOU_PRINT_EXIT( TRACE_LEVEL_ERROR, IOU_DBG_ERROR,\r
}\r
\r
/* The instance ID is the port GUID. */\r
- p_string = ExAllocatePool( PagedPool, sizeof(WCHAR) * 33 );\r
+ p_string = ExAllocatePoolWithTag( PagedPool, sizeof(WCHAR) * 33, 'iuqi' );\r
if( !p_string )\r
{\r
IOU_PRINT_EXIT( TRACE_LEVEL_ERROR, IOU_DBG_ERROR,\r
return STATUS_NO_SUCH_DEVICE;\r
}\r
\r
- p_string = ExAllocatePool(\r
- PagedPool, sizeof(WCHAR) * sizeof(p_ext->info.profile.id_string) );\r
+ p_string = ExAllocatePoolWithTag( PagedPool,\r
+ sizeof(WCHAR) * sizeof(p_ext->info.profile.id_string),\r
+ 'edqi');\r
if( !p_string )\r
{\r
IOU_PRINT_EXIT( TRACE_LEVEL_ERROR, IOU_DBG_ERROR,\r
return STATUS_NO_SUCH_DEVICE;\r
}\r
\r
- p_string = ExAllocatePool( PagedPool, \r
- max( IOC_LOCATION_SIZE,\r
- sizeof( WCHAR ) * ( sizeof( p_ext->info.profile.id_string ) + 1 )));\r
+ p_string = ExAllocatePoolWithTag( PagedPool, \r
+ max( IOC_LOCATION_SIZE, sizeof( WCHAR ) *\r
+ ( sizeof( p_ext->info.profile.id_string ) + 1 )),\r
+ 'olqi');\r
if( !p_string )\r
{\r
IOU_PRINT_EXIT( TRACE_LEVEL_ERROR, IOU_DBG_ERROR,\r
\r
*p_action = IrpComplete;\r
\r
- p_iou_info = ExAllocatePool( PagedPool, sizeof(PNP_BUS_INFORMATION) );\r
+ p_iou_info = ExAllocatePoolWithTag( PagedPool, sizeof(PNP_BUS_INFORMATION), 'ibqi' );\r
if( !p_iou_info )\r
{\r
IOU_PRINT_EXIT( TRACE_LEVEL_ERROR, IOU_DBG_ERROR,\r
\r
HCA_ENTER( HCA_DBG_PNP );\r
\r
- p_ifc = ExAllocatePool( PagedPool, sizeof(ci_interface_t) );\r
+ p_ifc = ExAllocatePoolWithTag( PagedPool, sizeof(ci_interface_t), 'fiha' );\r
if( !p_ifc )\r
{\r
HCA_TRACE_EXIT( HCA_DBG_ERROR,\r
if (flags)\r
return (MT_virt_addr_t)ExAllocatePoolWithTag(NonPagedPool,size,flags);\r
else\r
- return (MT_virt_addr_t)ExAllocatePool(NonPagedPool,size);\r
+ return (MT_virt_addr_t)ExAllocatePoolWithTag(NonPagedPool,size,'amOM');\r
}\r
\r
/******************************************************************************\r
{\r
g_pDbgData->m_nExAllocCount++;\r
MdKdPrint( DBGLVL_HIGH,("MdExAllocatePool() nExAllocCount = %d\n", g_pDbgData->m_nExAllocCount ));\r
- return ExAllocatePool( PoolType, NumberOfBytes );\r
+ return ExAllocatePoolWithTag( PoolType, NumberOfBytes, 'xEdM' );\r
\r
}\r
\r
{\r
g_pDbgData->m_nExAllocCount--;\r
MdKdPrint( DBGLVL_HIGH,("MdExFreePool() nExAllocCount = %d\n", g_pDbgData->m_nExAllocCount ));\r
- ExFreePool( p );\r
+ ExFreePoolWithTag( p, 'xEdM' );\r
}\r
\r
\r
#define MdStringForPnpMnFunc( mnfunc )\r
#define MdStringForIrpMjFunc( mjfunc ) \r
\r
-#define MdExAllocatePool( typ, siz ) ExAllocatePool( typ, siz )\r
-#define MdExFreePool( p ) ExFreePool( p )\r
+#define MdExAllocatePool( typ, siz ) ExAllocatePoolWithTag( typ, siz, 'xEdM' )\r
+#define MdExFreePool( p ) ExFreePoolWithTag( p, 'xEdM' )\r
\r
\r
#endif /* DBG */\r
\r
HCA_ENTER( HCA_DBG_PNP );\r
\r
- pIfc =\r
- (ci_interface_t*)ExAllocatePool( PagedPool, sizeof(ci_interface_t) );\r
+ pIfc = (ci_interface_t*)ExAllocatePoolWithTag( PagedPool,\r
+ sizeof(ci_interface_t),\r
+ 'pnpa' );\r
if( !pIfc )\r
{\r
HCA_PRINT( TRACE_LEVEL_ERROR,HCA_DBG_PNP, \r
if (!p_ext->al_sym_name.Buffer) {\r
p_ext->al_sym_name.Length = pNotify->SymbolicLinkName->Length;\r
p_ext->al_sym_name.MaximumLength = pNotify->SymbolicLinkName->MaximumLength;\r
- p_ext->al_sym_name.Buffer = ExAllocatePool( NonPagedPool, \r
- p_ext->al_sym_name.MaximumLength * sizeof(wchar_t) );\r
+ p_ext->al_sym_name.Buffer = ExAllocatePoolWithTag( NonPagedPool, \r
+ p_ext->al_sym_name.MaximumLength * sizeof(wchar_t),\r
+ 'cfin' );\r
if (!p_ext->al_sym_name.Buffer)\r
{\r
HCA_PRINT( TRACE_LEVEL_ERROR ,HCA_DBG_PNP ,("allocation of sym IBAL name failed.\n"));\r
err = mthca_get_livefish_info( p_ext->hca.mdev, &p_ext->hca.guid, &p_ext->hca.hw_ver );\r
else\r
err = mthca_get_dev_info( p_ext->hca.mdev, &p_ext->hca.guid, &p_ext->hca.hw_ver );\r
- if (err) {\r\r
+\r
+ if (err) {\r
+\r
//TODO: no cleanup on error\r
HCA_PRINT( TRACE_LEVEL_ERROR,HCA_DBG_PNP, \r
("can't get guid - mthca_query_port()"));\r