PERFORCE change 167205 for review

Marko Zec zec at FreeBSD.org
Tue Aug 11 10:19:17 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=167205

Change 167205 by zec at zec_tpx32 on 2009/08/11 10:18:59

	Make VNET_DEBUG a standalone compile-time option, i.e.
	decouple it from WITNESS.
	Suggested by:	bz

Affected files ...

.. //depot/projects/vimage-commit2/src/sys/conf/NOTES#36 edit
.. //depot/projects/vimage-commit2/src/sys/conf/options#37 edit
.. //depot/projects/vimage-commit2/src/sys/net/vnet.h#30 edit

Differences ...

==== //depot/projects/vimage-commit2/src/sys/conf/NOTES#36 (text+ko) ====

@@ -273,6 +273,10 @@
 options 	WITNESS_KDB
 options 	WITNESS_SKIPSPIN
 
+# VNET_DEBUG attempts to detect usage of faulty / NULL vnets, and
+# reports unintended curvnet recursions on console.
+options		VNET_DEBUG
+
 # LOCK_PROFILING - Profiling locks.  See LOCK_PROFILING(9) for details.
 options 	LOCK_PROFILING
 # Set the number of buffers and the hash size.  The hash size MUST be larger

==== //depot/projects/vimage-commit2/src/sys/conf/options#37 (text+ko) ====

@@ -659,6 +659,9 @@
 WITNESS_KDB		opt_witness.h
 WITNESS_SKIPSPIN	opt_witness.h
 
+# VIMAGE / VNET debugging
+VNET_DEBUG		opt_global.h
+
 # options for ACPI support
 ACPI_DEBUG		opt_acpi.h
 ACPI_MAX_TASKS		opt_acpi.h

==== //depot/projects/vimage-commit2/src/sys/net/vnet.h#30 (text+ko) ====

@@ -107,9 +107,6 @@
  * Various macros -- get and set the current network stack, but also
  * assertions.
  */
-#ifdef INVARIANTS
-#define	VNET_DEBUG
-#endif
 #ifdef VNET_DEBUG
 #define	VNET_ASSERT(condition)						\
 	if (!(condition)) {						\


More information about the p4-projects mailing list