Date: Tue, 11 Aug 2009 10:19:15 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 167205 for review Message-ID: <200908111019.n7BAJFr3097296@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=167205 Change 167205 by zec@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)) { \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908111019.n7BAJFr3097296>