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
This commit is contained in:
Attilio Rao 2010-07-21 10:14:04 +00:00
parent 5d261af96d
commit 4e55157fa4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210337

View File

@ -65,7 +65,7 @@ __FBSDID("$FreeBSD$");
#endif
#ifndef KTR_MASK
#define KTR_MASK (KTR_GEN)
#define KTR_MASK (0)
#endif
#ifndef KTR_CPUMASK