Date: Wed, 21 Jul 2010 10:14:04 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r210337 - head/sys/kern Message-ID: <201007211014.o6LAE4QR085528@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007211014.o6LAE4QR085528>