Provide a method to enable/disable rx debugging along as a part
of "fs trace -on/-off"
#include <strsafe.h>
#include <winioctl.h>
#include <..\afsrdr\kif.h>
+#include <rx\rx.h>
#ifdef _DEBUG
#include <crtdbg.h>
if ((inValue & 1) == 0) {
/* disable tracing */
osi_LogDisable(afsd_logp);
+ rx_DebugOnOff(FALSE);
}
else {
/* enable tracing */
osi_LogEnable(afsd_logp);
+ rx_DebugOnOff(TRUE);
}
}
rx_StartClientThread @220
rxkad_global_stats_lock @221 DATA
rxkad_stats_key @222 DATA
+ rx_DebugOnOff @223
DWORD TraceOption;
long code;
+ rxdebug_active = 0;
+
code = RegOpenKeyEx(HKEY_LOCAL_MACHINE, AFSREG_CLT_SVC_PARAM_SUBKEY,
0, KEY_QUERY_VALUE, &parmKey);
if (code != ERROR_SUCCESS)
#endif /* AFS_NT40_ENV */
}
+#ifdef AFS_NT40_ENV
+void
+rx_DebugOnOff(int on)
+{
+ rxdebug_active = on;
+}
+#endif /* AFS_NT40_ENV */
+
/* Don't call this debugging routine directly; use dpf */
void
extern void rx_SetEpoch(afs_uint32 epoch);
extern int rx_Init(u_int port);
extern int rx_InitHost(u_int host, u_int port);
+#ifdef AFS_NT40_ENV
+extern void rx_DebugOnOff(int on);
+#endif
#ifndef KERNEL
extern void rxi_StartServerProcs(int nExistingProcs);
#endif