svn commit: r210337 - head/sys/kern

Attilio Rao attilio at FreeBSD.org
Wed Jul 21 10:14:06 UTC 2010


Author: attilio
Date: Wed Jul 21 10:14:04 2010
New Revision: 210337
URL: http://svn.freebsd.org/changeset/base/210337

Log:
  Probabilly defaulting to KTR_GEN is not the right decision when KTR_MASK
  is not defined at all because KTR_GEN is still a valid class and some
  traces may fit in. Default to 0, instead, and block any tracing.
  
  As long as this is a POLA violation (some thirdy-part code, even if
  that may be a questionable choice, could be rely on that feature) a
  MFC possibility might be carefully evaluated.
  
  Sponsored by:	Sandvine Incorporated

Modified:
  head/sys/kern/kern_ktr.c

Modified: head/sys/kern/kern_ktr.c
==============================================================================
--- head/sys/kern/kern_ktr.c	Wed Jul 21 10:11:46 2010	(r210336)
+++ head/sys/kern/kern_ktr.c	Wed Jul 21 10:14:04 2010	(r210337)
@@ -65,7 +65,7 @@ __FBSDID("$FreeBSD$");
 #endif
 
 #ifndef KTR_MASK
-#define	KTR_MASK	(KTR_GEN)
+#define	KTR_MASK	(0)
 #endif
 
 #ifndef KTR_CPUMASK


More information about the svn-src-all mailing list