[Openib-windows] some more debug information for WSD
Tzachi Dar
tzachid at mellanox.co.il
Thu May 25 09:07:56 PDT 2006
Hi Fab
While debugging an issue in WSD I have noticed that it is important to
know if all packets sent by one side were indeed received by the other
side.
The following debug variables (in the patch) help in getting this
information.
Thanks
Tzachi
Index: ibsp_iblow.c
===================================================================
--- ibsp_iblow.c (revision 356)
+++ ibsp_iblow.c (working copy)
@@ -109,6 +109,9 @@
InterlockedExchangeAdd64( &g_pm_stat.pdata[BYTES_RECV],
lpOverlapped->InternalHigh );
#endif
+#ifdef _DEBUG_
+ cl_atomic_inc(&g_ibsp.total_recv_compleated);
+#endif
break;
#ifdef PERFMON_ENABLED
Index: ibspdll.c
===================================================================
--- ibspdll.c (revision 356)
+++ ibspdll.c (working copy)
@@ -185,6 +185,12 @@
IBSP_ERROR( (" send_count = %d\n", g_ibsp.send_count) );
+ IBSP_ERROR( (" total_send_count = %d\n", g_ibsp.total_send_count)
);
+
+ IBSP_ERROR( (" total_recv_count = %d\n", g_ibsp.total_recv_count)
);
+
+ IBSP_ERROR( (" total_recv_compleated = %d\n",
g_ibsp.total_recv_compleated) );
+
IBSP_ERROR(
(" number of QPs left = %d\n", g_ibsp.qp_num) );
IBSP_ERROR(
@@ -1590,6 +1596,7 @@
}
cl_atomic_inc( &g_ibsp.recv_count );
+ cl_atomic_inc( &g_ibsp.total_recv_count );
fzprint(("%s():%d:0x%x:0x%x: ov=0x%p h0=%d h1=%d h1_c=%d send=%d
recv=%d\n",
__FUNCTION__, __LINE__, GetCurrentProcessId(),
@@ -1825,6 +1832,7 @@
}
cl_atomic_inc( &g_ibsp.send_count );
+ cl_atomic_inc( &g_ibsp.total_send_count );
fzprint(("%s():%d:0x%x:0x%x: ov=0x%p h0=%d h1=%d h1_c=%d send=%d
recv=%d\n",
__FUNCTION__, __LINE__, GetCurrentProcessId(),
Index: ibspstruct.h
===================================================================
--- ibspstruct.h (revision 356)
+++ ibspstruct.h (working copy)
@@ -464,6 +464,9 @@
atomic32_t max_comp_count;
atomic32_t send_count;
atomic32_t recv_count;
+ atomic32_t total_send_count;
+ atomic32_t total_recv_count;
+ atomic32_t total_recv_compleated;
atomic32_t CloseSocket_count;
#endif
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060525/7b53962e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wsd_debug.diff
Type: application/octet-stream
Size: 1888 bytes
Desc: wsd_debug.diff
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060525/7b53962e/attachment.obj>
More information about the ofw
mailing list