From owner-p4-projects@FreeBSD.ORG Wed Jul 28 08:21:46 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0AD9F106624F; Wed, 28 Jul 2010 08:21:42 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 353C51065F21 for ; Wed, 28 Jul 2010 08:21:41 +0000 (UTC) (envelope-from kibab@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A1E228FC18 for ; Wed, 28 Jul 2010 08:21:39 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o6S8LdoX009262 for ; Wed, 28 Jul 2010 08:21:39 GMT (envelope-from kibab@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o6S8LdPa009260 for perforce@freebsd.org; Wed, 28 Jul 2010 08:21:39 GMT (envelope-from kibab@FreeBSD.org) Date: Wed, 28 Jul 2010 08:21:39 GMT Message-Id: <201007280821.o6S8LdPa009260@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kibab@FreeBSD.org using -f From: Ilya Bakulin To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 181489 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2010 08:21:46 -0000 http://p4web.freebsd.org/@@181489?ac=10 Change 181489 by kibab@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 #include #include +#include #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 #include +#ifdef REGRESSION +FEATURE(regression, "Kernel support for interfaces nessesary for regression testing (SECURITY RISK!)"); +#endif + #if defined(INET) || defined(INET6) #include #include