Deleted Added
full compact
kern_ktr.c (74903) kern_ktr.c (77843)
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 *
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 74903 2001-03-28 03:06:10Z jhb $
29 * $FreeBSD: head/sys/kern/kern_ktr.c 77843 2001-06-06 22:17:08Z peter $
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_ddb.h"

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

82
83/*
84 * This variable is used only by gdb to work out what fields are in
85 * ktr_entry.
86 */
87int ktr_extend = KTR_EXTEND_DEFAULT;
88SYSCTL_INT(_debug_ktr, OID_AUTO, extend, CTLFLAG_RD, &ktr_extend, 0, "");
89
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_ddb.h"

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

82
83/*
84 * This variable is used only by gdb to work out what fields are in
85 * ktr_entry.
86 */
87int ktr_extend = KTR_EXTEND_DEFAULT;
88SYSCTL_INT(_debug_ktr, OID_AUTO, extend, CTLFLAG_RD, &ktr_extend, 0, "");
89
90int ktr_cpumask;
91TUNABLE_INT_DECL("debug.ktr.cpumask", KTR_CPUMASK, ktr_cpumask);
90int ktr_cpumask = KTR_CPUMASK;
91TUNABLE_INT("debug.ktr.cpumask", &ktr_cpumask);
92SYSCTL_INT(_debug_ktr, OID_AUTO, cpumask, CTLFLAG_RW, &ktr_cpumask, 0, "");
93
92SYSCTL_INT(_debug_ktr, OID_AUTO, cpumask, CTLFLAG_RW, &ktr_cpumask, 0, "");
93
94int ktr_mask;
95TUNABLE_INT_DECL("debug.ktr.mask", KTR_MASK, ktr_mask);
94int ktr_mask = KTR_MASK;
95TUNABLE_INT("debug.ktr.mask", &ktr_mask);
96SYSCTL_INT(_debug_ktr, OID_AUTO, mask, CTLFLAG_RW, &ktr_mask, 0, "");
97
98int ktr_entries = KTR_ENTRIES;
99SYSCTL_INT(_debug_ktr, OID_AUTO, entries, CTLFLAG_RD, &ktr_entries, 0, "");
100
101volatile int ktr_idx = 0;
102struct ktr_entry ktr_buf[KTR_ENTRIES];
103
96SYSCTL_INT(_debug_ktr, OID_AUTO, mask, CTLFLAG_RW, &ktr_mask, 0, "");
97
98int ktr_entries = KTR_ENTRIES;
99SYSCTL_INT(_debug_ktr, OID_AUTO, entries, CTLFLAG_RD, &ktr_entries, 0, "");
100
101volatile int ktr_idx = 0;
102struct ktr_entry ktr_buf[KTR_ENTRIES];
103
104int ktr_verbose;
105TUNABLE_INT_DECL("debug.ktr.verbose", KTR_VERBOSE_DEFAULT, ktr_verbose);
104int ktr_verbose = KTR_VERBOSE_DEFAULT;
105TUNABLE_INT("debug.ktr.verbose", &ktr_verbose);
106SYSCTL_INT(_debug_ktr, OID_AUTO, verbose, CTLFLAG_RW, &ktr_verbose, 0, "");
107
108#ifdef KTR
109#ifdef KTR_EXTEND
110void
111ktr_tracepoint(u_int mask, const char *filename, u_int line,
112 const char *format, ...)
113#else

--- 154 unchanged lines hidden ---
106SYSCTL_INT(_debug_ktr, OID_AUTO, verbose, CTLFLAG_RW, &ktr_verbose, 0, "");
107
108#ifdef KTR
109#ifdef KTR_EXTEND
110void
111ktr_tracepoint(u_int mask, const char *filename, u_int line,
112 const char *format, ...)
113#else

--- 154 unchanged lines hidden ---