Windows: Export additional RX debugging variables from afsrpc.dll
authorJeffrey Altman <jaltman@your-file-system.com>
Sun, 19 Sep 2010 16:17:08 +0000 (09:17 -0700)
committerDerrick Brashear <shadow@dementia.org>
Mon, 20 Sep 2010 09:00:11 +0000 (02:00 -0700)
Export

   rxi_nRecvFrags                          @2008 DATA
   rxi_nSendFrags                          @2009 DATA
   rx_initReceiveWindow                    @2010 DATA
   rx_initSendWindow                       @2011 DATA
   rx_intentionallyDroppedPacketsPer100    @2012 DATA
   rx_intentionallyDroppedOnReadPer100     @2013 DATA

so they can be referenced from pthreaded builds of src/rx/test tools.
Exported variables must be present in both FREE and CHECKED builds.

Change-Id: Ia7f3ee0143679bab1ce74f71dc3a996cda1f18a8
Reviewed-on: http://gerrit.openafs.org/2779
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/libafsrpc/afsrpc.def
src/rx/rx_globals.h

index d4b6dc5..4ed8c7c 100755 (executable)
@@ -267,6 +267,12 @@ EXPORTS
         rx_TSFPQLocalMax                        @2002 DATA
         rx_TSFPQMaxProcs                        @2003 DATA
         rxi_MorePackets                         @2007
+        rxi_nRecvFrags                          @2008 DATA
+        rxi_nSendFrags                          @2009 DATA
+        rx_initReceiveWindow                    @2010 DATA
+        rx_initSendWindow                       @2011 DATA
+        rx_intentionallyDroppedPacketsPer100    @2012 DATA
+        rx_intentionallyDroppedOnReadPer100     @2013 DATA
 
 ; for debugging
         rx_DumpCalls                            @9998
index 4117dc8..6afc508 100644 (file)
@@ -64,8 +64,8 @@ EXT struct clock rx_hardAckDelay;
  * Normally we wait and send a hard ack when the receiver consumes the packet */
 EXT struct clock rx_softAckDelay;
 
-/* Variable to allow introduction of network unreliability */
-#ifdef RXDEBUG
+#if defined(RXDEBUG) || defined(AFS_NT40_ENV)
+/* Variable to allow introduction of network unreliability; exported from libafsrpc */
 EXT int rx_intentionallyDroppedPacketsPer100 GLOBALSINIT(0);   /* Dropped on Send */
 EXT int rx_intentionallyDroppedOnReadPer100  GLOBALSINIT(0);   /* Dropped on Read */
 #endif