kern_ktr.c (103787) | kern_ktr.c (103995) |
---|---|
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 103787 2002-09-22 07:13:45Z jeff $ | 29 * $FreeBSD: head/sys/kern/kern_ktr.c 103995 2002-09-26 07:38:56Z jeff $ |
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_kse->ke_flags & KEF_IDLEKSE) == 0 && 199 td != ald_thread) { |
199 if (ktr_alq_max && ktr_alq_cnt > ktr_alq_max) 200 goto done; 201 if ((ale = alq_get(ktr_alq, ALQ_NOWAIT)) == NULL) { 202 ktr_alq_failed++; 203 goto done; 204 } 205 ktr_alq_cnt++; 206 entry = (struct ktr_entry *)ale->ae_data; --- 124 unchanged lines hidden --- | 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++; 207 entry = (struct ktr_entry *)ale->ae_data; --- 124 unchanged lines hidden --- |