From 7ee80a853cebc472d9d9664dbfcccadd1d49d5fc Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 19 Sep 2010 09:17:08 -0700 Subject: [PATCH] Windows: Export additional RX debugging variables from afsrpc.dll 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 Tested-by: Derrick Brashear --- src/libafsrpc/afsrpc.def | 6 ++++++ src/rx/rx_globals.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/libafsrpc/afsrpc.def b/src/libafsrpc/afsrpc.def index d4b6dc562..4ed8c7c91 100755 --- a/src/libafsrpc/afsrpc.def +++ b/src/libafsrpc/afsrpc.def @@ -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 diff --git a/src/rx/rx_globals.h b/src/rx/rx_globals.h index 4117dc86e..6afc508a4 100644 --- a/src/rx/rx_globals.h +++ b/src/rx/rx_globals.h @@ -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 -- 2.39.5