svn commit: r287438 - stable/10/sys/kern

Warner Losh imp at FreeBSD.org
Thu Sep 3 18:14:33 UTC 2015


Author: imp
Date: Thu Sep  3 18:14:31 2015
New Revision: 287438
URL: https://svnweb.freebsd.org/changeset/base/287438

Log:
  MFC: r287183, r287264, r287265
  
  Export kern.features.invariants when kernel is compiled with invariants.

Modified:
  stable/10/sys/kern/init_main.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/init_main.c
==============================================================================
--- stable/10/sys/kern/init_main.c	Thu Sep  3 17:46:57 2015	(r287437)
+++ stable/10/sys/kern/init_main.c	Thu Sep  3 18:14:31 2015	(r287438)
@@ -115,6 +115,10 @@ int	bootverbose = BOOTVERBOSE;
 SYSCTL_INT(_debug, OID_AUTO, bootverbose, CTLFLAG_RW, &bootverbose, 0,
 	"Control the output of verbose kernel messages");
 
+#ifdef INVARIANTS
+FEATURE(invariants, "Kernel compiled with INVARIANTS, may affect performance");
+#endif
+
 /*
  * This ensures that there is at least one entry so that the sysinit_set
  * symbol is not undefined.  A sybsystem ID of SI_SUB_DUMMY is never


More information about the svn-src-all mailing list