kern_dtrace.c (211614) | kern_dtrace.c (219028) |
---|---|
1/*- 2 * Copyright (c) 2007-2008 John Birrell <jb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007-2008 John Birrell <jb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/kern/kern_dtrace.c 211614 2010-08-22 11:09:53Z rpaulo $"); | 28__FBSDID("$FreeBSD: head/sys/kern/kern_dtrace.c 219028 2011-02-25 10:11:01Z netchild $"); |
29 30#include "opt_kdb.h" 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/eventhandler.h> 35#include <sys/kdb.h> 36#include <sys/kernel.h> 37#include <sys/malloc.h> 38#include <sys/proc.h> 39#include <sys/dtrace_bsd.h> | 29 30#include "opt_kdb.h" 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/eventhandler.h> 35#include <sys/kdb.h> 36#include <sys/kernel.h> 37#include <sys/malloc.h> 38#include <sys/proc.h> 39#include <sys/dtrace_bsd.h> |
40#include <sys/sysctl.h> |
|
40 41#define KDTRACE_PROC_SIZE 64 42#define KDTRACE_THREAD_SIZE 256 43 | 41 42#define KDTRACE_PROC_SIZE 64 43#define KDTRACE_THREAD_SIZE 256 44 |
45FEATURE(kdtrace_hooks, 46 "Kernel DTrace hooks which are required to load DTrace kernel modules"); 47 |
|
44MALLOC_DEFINE(M_KDTRACE, "kdtrace", "DTrace hooks"); 45 46/* Return the DTrace process data size compiled in the kernel hooks. */ 47size_t 48kdtrace_proc_size() 49{ 50 51 return (KDTRACE_PROC_SIZE); --- 62 unchanged lines hidden --- | 48MALLOC_DEFINE(M_KDTRACE, "kdtrace", "DTrace hooks"); 49 50/* Return the DTrace process data size compiled in the kernel hooks. */ 51size_t 52kdtrace_proc_size() 53{ 54 55 return (KDTRACE_PROC_SIZE); --- 62 unchanged lines hidden --- |