kern_ktrace.c (214158) | kern_ktrace.c (219028) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. 4 * Copyright (c) 2005 Robert N. M. Watson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * @(#)kern_ktrace.c 8.2 (Berkeley) 9/23/93 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. 4 * Copyright (c) 2005 Robert N. M. Watson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * @(#)kern_ktrace.c 8.2 (Berkeley) 9/23/93 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/kern/kern_ktrace.c 214158 2010-10-21 19:17:40Z jhb $"); | 35__FBSDID("$FreeBSD: head/sys/kern/kern_ktrace.c 219028 2011-02-25 10:11:01Z netchild $"); |
36 37#include "opt_ktrace.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/fcntl.h> 42#include <sys/kernel.h> 43#include <sys/kthread.h> --- 34 unchanged lines hidden (view full) --- 78 * records from another event. Process and thread ID information is provided 79 * in the record, and user applications can de-interlace events if required. 80 */ 81 82static MALLOC_DEFINE(M_KTRACE, "KTRACE", "KTRACE"); 83 84#ifdef KTRACE 85 | 36 37#include "opt_ktrace.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/fcntl.h> 42#include <sys/kernel.h> 43#include <sys/kthread.h> --- 34 unchanged lines hidden (view full) --- 78 * records from another event. Process and thread ID information is provided 79 * in the record, and user applications can de-interlace events if required. 80 */ 81 82static MALLOC_DEFINE(M_KTRACE, "KTRACE", "KTRACE"); 83 84#ifdef KTRACE 85 |
86FEATURE(ktrace, "Kernel support for system-call tracing"); 87 |
|
86#ifndef KTRACE_REQUEST_POOL 87#define KTRACE_REQUEST_POOL 100 88#endif 89 90struct ktr_request { 91 struct ktr_header ktr_header; 92 void *ktr_buffer; 93 union { --- 1074 unchanged lines hidden --- | 88#ifndef KTRACE_REQUEST_POOL 89#define KTRACE_REQUEST_POOL 100 90#endif 91 92struct ktr_request { 93 struct ktr_header ktr_header; 94 void *ktr_buffer; 95 union { --- 1074 unchanged lines hidden --- |