PERFORCE change 181489 for review

Ilya Bakulin kibab at FreeBSD.org
Wed Jul 28 08:21:46 UTC 2010


http://p4web.freebsd.org/@@181489?ac=10

Change 181489 by kibab at kibab_kibab-nb on 2010/07/28 06:08:40

	A set of debugging-related features.

Affected files ...

.. //depot/projects/soc2010/kibab_sysctlreg/src_sys/kern/kern_dtrace.c#2 edit
.. //depot/projects/soc2010/kibab_sysctlreg/src_sys/kern/kern_ktr.c#2 edit
.. //depot/projects/soc2010/kibab_sysctlreg/src_sys/kern/kern_ktrace.c#2 edit
.. //depot/projects/soc2010/kibab_sysctlreg/src_sys/kern/kern_lock.c#2 edit
.. //depot/projects/soc2010/kibab_sysctlreg/src_sys/kern/kern_prot.c#2 edit

Differences ...

==== //depot/projects/soc2010/kibab_sysctlreg/src_sys/kern/kern_dtrace.c#2 (text+ko) ====

@@ -37,12 +37,15 @@
 #include <sys/malloc.h>
 #include <sys/proc.h>
 #include <sys/dtrace_bsd.h>
+#include <sys/sysctl.h>
 
 #define KDTRACE_PROC_SIZE	64
 #define KDTRACE_PROC_ZERO	8
 #define	KDTRACE_THREAD_SIZE	256
 #define	KDTRACE_THREAD_ZERO	64
 
+FEATURE(kdtrace_hooks, "Kernel DTrace hooks which are required to load DTrace kernel modules");
+
 MALLOC_DEFINE(M_KDTRACE, "kdtrace", "DTrace hooks");
 
 /* Return the DTrace process data size compiled in the kernel hooks. */

==== //depot/projects/soc2010/kibab_sysctlreg/src_sys/kern/kern_ktr.c#2 (text+ko) ====

@@ -80,6 +80,8 @@
 #define	KTR_CPU		PCPU_GET(cpuid)
 #endif
 
+FEATURE(ktr, "Kernel support for KTR kernel tracing facility");
+
 SYSCTL_NODE(_debug, OID_AUTO, ktr, CTLFLAG_RD, 0, "KTR options");
 
 int	ktr_cpumask = KTR_CPUMASK;

==== //depot/projects/soc2010/kibab_sysctlreg/src_sys/kern/kern_ktrace.c#2 (text+ko) ====

@@ -83,6 +83,8 @@
 
 #ifdef KTRACE
 
+FEATURE(ktrace, "Kernel support for system-call tracing");
+
 #ifndef KTRACE_REQUEST_POOL
 #define	KTRACE_REQUEST_POOL	100
 #endif

==== //depot/projects/soc2010/kibab_sysctlreg/src_sys/kern/kern_lock.c#2 (text+ko) ====

@@ -1272,6 +1272,8 @@
 }
 
 #ifdef INVARIANT_SUPPORT
+FEATURE(invariant_support, "Support for modules compiled with INVARIANTS option");
+
 #ifndef INVARIANTS
 #undef	_lockmgr_assert
 #endif

==== //depot/projects/soc2010/kibab_sysctlreg/src_sys/kern/kern_prot.c#2 (text+ko) ====

@@ -69,6 +69,10 @@
 #include <sys/syscallsubr.h>
 #include <sys/sysctl.h>
 
+#ifdef REGRESSION
+FEATURE(regression, "Kernel support for interfaces nessesary for regression testing (SECURITY RISK!)");
+#endif
+
 #if defined(INET) || defined(INET6)
 #include <netinet/in.h>
 #include <netinet/in_pcb.h>


More information about the p4-projects mailing list