[IPoIB NDIS 6.0 CM] Tracing facilities (mlnx 5208)
[mirror/winof/.git] / ulp / ipoib_NDIS6_CM / kernel / ipoib_driver.cpp
index 2bb4ae2..35d2b80 100644 (file)
@@ -3928,6 +3928,8 @@ ipoib_reg_addrs(
 \r
                /* Take a reference for each service request. */\r
                cl_obj_ref(&p_adapter->obj);\r
+                       IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
+                               ("[%p] Adapter refcount raised to %d\n", p_adapter, p_adapter->obj.ref_cnt));\r
                ib_status = p_adapter->p_ifc->reg_svc(\r
                        p_adapter->h_al, &ib_service, &p_addr_item->p_reg->h_reg_svc );\r
                if( ib_status != IB_SUCCESS )\r
@@ -3960,6 +3962,8 @@ ipoib_reg_addrs(
                                p_adapter->hung = TRUE;\r
                        }\r
                        cl_obj_deref(&p_adapter->obj);\r
+                       IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
+                               ("Adapter[%p] refcnt decremented to %d\n", p_adapter, p_adapter->obj.ref_cnt));\r
                        cl_free( p_addr_item->p_reg );\r
                        p_addr_item->p_reg = NULL;\r
                }\r
@@ -4069,6 +4073,8 @@ __ipoib_ats_reg_cb(
 \r
        cl_obj_unlock( &p_reg->p_adapter->obj );\r
        cl_obj_deref(&p_reg->p_adapter->obj);\r
+       IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
+                       ("Adapter[%p] refcnt decremented to %d\n", p_reg->p_adapter, p_reg->p_adapter->obj.ref_cnt));\r
 \r
        IPOIB_EXIT( IPOIB_DBG_OID );\r
 }\r