kern_ktrace.c (8876) | kern_ktrace.c (12221) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)kern_ktrace.c 8.2 (Berkeley) 9/23/93 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)kern_ktrace.c 8.2 (Berkeley) 9/23/93 |
34 * $Id: kern_ktrace.c,v 1.5 1994/10/02 17:35:15 phk Exp $ | 34 * $Id: kern_ktrace.c,v 1.6 1995/05/30 08:05:28 rgrimes Exp $ |
35 */ 36 37#ifdef KTRACE 38 39#include <sys/param.h> 40#include <sys/systm.h> | 35 */ 36 37#ifdef KTRACE 38 39#include <sys/param.h> 40#include <sys/systm.h> |
41#include <sys/sysproto.h> |
|
41#include <sys/proc.h> 42#include <sys/file.h> 43#include <sys/namei.h> 44#include <sys/vnode.h> 45#include <sys/ktrace.h> 46#include <sys/malloc.h> 47#include <sys/syslog.h> 48 --- 169 unchanged lines hidden (view full) --- 218 p->p_traceflag &= ~KTRFAC_ACTIVE; 219} 220 221/* Interface and common routines */ 222 223/* 224 * ktrace system call 225 */ | 42#include <sys/proc.h> 43#include <sys/file.h> 44#include <sys/namei.h> 45#include <sys/vnode.h> 46#include <sys/ktrace.h> 47#include <sys/malloc.h> 48#include <sys/syslog.h> 49 --- 169 unchanged lines hidden (view full) --- 219 p->p_traceflag &= ~KTRFAC_ACTIVE; 220} 221 222/* Interface and common routines */ 223 224/* 225 * ktrace system call 226 */ |
227#ifndef _SYS_SYSPROTO_H_ |
|
226struct ktrace_args { 227 char *fname; 228 int ops; 229 int facs; 230 int pid; 231}; | 228struct ktrace_args { 229 char *fname; 230 int ops; 231 int facs; 232 int pid; 233}; |
234#endif |
|
232/* ARGSUSED */ 233int 234ktrace(curp, uap, retval) 235 struct proc *curp; 236 register struct ktrace_args *uap; 237 int *retval; 238{ 239 register struct vnode *vp = NULL; --- 240 unchanged lines hidden --- | 235/* ARGSUSED */ 236int 237ktrace(curp, uap, retval) 238 struct proc *curp; 239 register struct ktrace_args *uap; 240 int *retval; 241{ 242 register struct vnode *vp = NULL; --- 240 unchanged lines hidden --- |