aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2010-07-21 10:14:04 +0000
committerAttilio Rao <attilio@FreeBSD.org>2010-07-21 10:14:04 +0000
commit4e55157fa4c135885d66cffa8ec16e988014b7cc (patch)
tree0a9a31bf0827db5fb21a925b364cf599fb8b5026
parent5d261af96d55bea6c8fbb8ed4463cd8c1457da78 (diff)
downloadsrc-4e55157fa4c135885d66cffa8ec16e988014b7cc.tar.gz
src-4e55157fa4c135885d66cffa8ec16e988014b7cc.zip
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
Notes
Notes: svn path=/head/; revision=210337
-rw-r--r--sys/kern/kern_ktr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_ktr.c b/sys/kern/kern_ktr.c
index 9586ae652784..2fc2acc7730d 100644
--- a/sys/kern/kern_ktr.c
+++ b/sys/kern/kern_ktr.c
@@ -65,7 +65,7 @@ __FBSDID("$FreeBSD$");
#endif
#ifndef KTR_MASK
-#define KTR_MASK (KTR_GEN)
+#define KTR_MASK (0)
#endif
#ifndef KTR_CPUMASK