Deleted Added
full compact
kern_ktrace.c (24131) kern_ktrace.c (30309)
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.17 1997/02/22 09:39:05 peter Exp $
34 * $Id: kern_ktrace.c,v 1.18 1997/03/23 03:36:19 bde Exp $
35 */
36
37#include "opt_ktrace.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/sysproto.h>
42#include <sys/proc.h>
43#include <sys/fcntl.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
35 */
36
37#include "opt_ktrace.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/sysproto.h>
42#include <sys/proc.h>
43#include <sys/fcntl.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
50MALLOC_DEFINE(M_KTRACE, "KTRACE", "KTRACE");
51
50#ifdef KTRACE
51static struct ktr_header *ktrgetheader __P((int type));
52static void ktrwrite __P((struct vnode *, struct ktr_header *));
53static int ktrcanset __P((struct proc *,struct proc *));
54static int ktrsetchildren __P((struct proc *,struct proc *,int,int,struct vnode *));
55static int ktrops __P((struct proc *,struct proc *,int,int,struct vnode *));
56
57

--- 470 unchanged lines hidden ---
52#ifdef KTRACE
53static struct ktr_header *ktrgetheader __P((int type));
54static void ktrwrite __P((struct vnode *, struct ktr_header *));
55static int ktrcanset __P((struct proc *,struct proc *));
56static int ktrsetchildren __P((struct proc *,struct proc *,int,int,struct vnode *));
57static int ktrops __P((struct proc *,struct proc *,int,int,struct vnode *));
58
59

--- 470 unchanged lines hidden ---