Deleted Added
sdiff udiff text old ( 69880 ) new ( 70035 )
full compact
1/*
2 * Copyright (c) 2000
3 * John Baldwin <jhb@FreeBSD.org>. 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

--- 12 unchanged lines hidden (view full) ---

21 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/kern/kern_ktr.c 69880 2000-12-12 00:43:50Z jhb $
30 */
31
32/*
33 * This module holds the global variables used by KTR and the ktr_tracepoint()
34 * function that does the actual tracing.
35 */
36
37#include "opt_ktr.h"
38
39#include <sys/types.h>
40#include <sys/time.h>
41#include <sys/ktr.h>
42#include <sys/libkern.h>
43#include <sys/linker_set.h>
44#include <sys/sysctl.h>
45#include <sys/systm.h>
46#include <machine/globals.h>
47#include <machine/stdarg.h>
48
49#ifndef KTR_MASK
50#define KTR_MASK (KTR_GEN)
51#endif
52
53#ifndef KTR_CPUMASK
54#define KTR_CPUMASK (~0)
55#endif
56

--- 90 unchanged lines hidden (view full) ---

147 entry->ktr_desc = format;
148 entry->ktr_parm1 = arg1;
149 entry->ktr_parm2 = arg2;
150 entry->ktr_parm3 = arg3;
151 entry->ktr_parm4 = arg4;
152 entry->ktr_parm5 = arg5;
153#endif
154}
155#endif /* KTR */