kern_ktr.c (112105) | kern_ktr.c (114471) |
---|---|
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 112105 2003-03-11 19:56:16Z jhb $ | 29 * $FreeBSD: head/sys/kern/kern_ktr.c 114471 2003-05-02 00:33:12Z julian $ |
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" --- 152 unchanged lines hidden (view full) --- 190 td = curthread; 191 if (td->td_inktr) 192 return; 193 td->td_inktr++; 194#endif 195#ifdef KTR_ALQ 196 if (ktr_alq_enabled && 197 td->td_critnest == 0 && | 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" --- 152 unchanged lines hidden (view full) --- 190 td = curthread; 191 if (td->td_inktr) 192 return; 193 td->td_inktr++; 194#endif 195#ifdef KTR_ALQ 196 if (ktr_alq_enabled && 197 td->td_critnest == 0 && |
198 (td->td_kse->ke_flags & KEF_IDLEKSE) == 0 && | 198 (td->td_flags & TDF_IDLETD) == 0 && |
199 td != ald_thread) { 200 if (ktr_alq_max && ktr_alq_cnt > ktr_alq_max) 201 goto done; 202 if ((ale = alq_get(ktr_alq, ALQ_NOWAIT)) == NULL) { 203 ktr_alq_failed++; 204 goto done; 205 } 206 ktr_alq_cnt++; --- 134 unchanged lines hidden --- | 199 td != ald_thread) { 200 if (ktr_alq_max && ktr_alq_cnt > ktr_alq_max) 201 goto done; 202 if ((ale = alq_get(ktr_alq, ALQ_NOWAIT)) == NULL) { 203 ktr_alq_failed++; 204 goto done; 205 } 206 ktr_alq_cnt++; --- 134 unchanged lines hidden --- |