kern_ktr.c (70705) | kern_ktr.c (70861) |
---|---|
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 70705 2001-01-06 06:51:43Z jhb $ | 29 * $FreeBSD: head/sys/kern/kern_ktr.c 70861 2001-01-10 04:43:51Z jake $ |
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" --- 18 unchanged lines hidden (view full) --- 56#define KTR_MASK (KTR_GEN) 57#endif 58 59#ifndef KTR_CPUMASK 60#define KTR_CPUMASK (~0) 61#endif 62 63#ifdef SMP | 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" --- 18 unchanged lines hidden (view full) --- 56#define KTR_MASK (KTR_GEN) 57#endif 58 59#ifndef KTR_CPUMASK 60#define KTR_CPUMASK (~0) 61#endif 62 63#ifdef SMP |
64#define KTR_CPU cpuid | 64#define KTR_CPU PCPU_GET(cpuid) |
65#else 66#define KTR_CPU 0 67#endif 68 69#ifdef KTR_EXTEND 70#define KTR_EXTEND_DEFAULT 1 71#else 72#define KTR_EXTEND_DEFAULT 0 --- 197 unchanged lines hidden --- | 65#else 66#define KTR_CPU 0 67#endif 68 69#ifdef KTR_EXTEND 70#define KTR_EXTEND_DEFAULT 1 71#else 72#define KTR_EXTEND_DEFAULT 0 --- 197 unchanged lines hidden --- |