[WSD] Add a few more debug counters.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 28 May 2006 08:35:30 +0000 (08:35 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 28 May 2006 08:35:30 +0000 (08:35 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@364 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/wsd/user/ibsp_iblow.c
ulp/wsd/user/ibspdll.c
ulp/wsd/user/ibspstruct.h

index 8376d79..dc545d8 100644 (file)
@@ -108,6 +108,9 @@ complete_wq(
                        InterlockedIncrement64( &g_pm_stat.pdata[COMP_RECV] );\r
                        InterlockedExchangeAdd64( &g_pm_stat.pdata[BYTES_RECV],\r
                                lpOverlapped->InternalHigh );\r
+#endif\r
+#ifdef _DEBUG_\r
+                       cl_atomic_inc(&g_ibsp.total_recv_compleated);\r
 #endif\r
                        break;\r
 #ifdef PERFMON_ENABLED\r
index bbe6d5c..1bbc514 100644 (file)
@@ -185,6 +185,12 @@ _DllMain(
 \r
                        IBSP_ERROR( ("  send_count = %d\n", g_ibsp.send_count) );\r
 \r
+                       IBSP_ERROR( ("  total_send_count = %d\n", g_ibsp.total_send_count) );\r
+\r
+                       IBSP_ERROR( ("  total_recv_count = %d\n", g_ibsp.total_recv_count) );\r
+\r
+                       IBSP_ERROR( ("  total_recv_compleated = %d\n", g_ibsp.total_recv_compleated) );\r
+\r
                        IBSP_ERROR(\r
                                         ("  number of QPs left = %d\n", g_ibsp.qp_num) );\r
                        IBSP_ERROR(\r
@@ -1590,6 +1596,7 @@ IBSPRecv(
        }\r
 \r
        cl_atomic_inc( &g_ibsp.recv_count );\r
+       cl_atomic_inc( &g_ibsp.total_recv_count );\r
 \r
        fzprint(("%s():%d:0x%x:0x%x: ov=0x%p h0=%d h1=%d h1_c=%d send=%d recv=%d\n",\r
                         __FUNCTION__, __LINE__, GetCurrentProcessId(),\r
@@ -1825,6 +1832,7 @@ IBSPSend(
        }\r
 \r
        cl_atomic_inc( &g_ibsp.send_count );\r
+       cl_atomic_inc( &g_ibsp.total_send_count );\r
 \r
        fzprint(("%s():%d:0x%x:0x%x: ov=0x%p h0=%d h1=%d h1_c=%d send=%d recv=%d\n",\r
                         __FUNCTION__, __LINE__, GetCurrentProcessId(),\r
index 4d152f2..76c9550 100644 (file)
@@ -464,6 +464,9 @@ struct ibspdll_globals
        atomic32_t max_comp_count;\r
        atomic32_t send_count;\r
        atomic32_t recv_count;\r
+       atomic32_t total_send_count;\r
+       atomic32_t total_recv_count;\r
+       atomic32_t total_recv_compleated;\r
        atomic32_t CloseSocket_count;\r
 #endif\r
 };\r