Deleted Added
full compact
fasttrap.c (250953) fasttrap.c (252493)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 *
21 * Portions Copyright 2010 The FreeBSD Foundation
22 *
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 *
21 * Portions Copyright 2010 The FreeBSD Foundation
22 *
23 * $FreeBSD: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c 250953 2013-05-24 03:29:32Z markj $
23 * $FreeBSD: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c 252493 2013-07-01 23:12:59Z markj $
24 */
25
26/*
27 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30
31#if defined(sun)

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

2430
2431 mtx_lock(&fasttrap_cleanup_mtx);
2432 fasttrap_cleanup_drain = 1;
2433 /* Wait for the cleanup thread to finish up and signal us. */
2434 wakeup(&fasttrap_cleanup_cv);
2435 mtx_sleep(&fasttrap_cleanup_drain, &fasttrap_cleanup_mtx, 0, "ftcld",
2436 0);
2437 fasttrap_cleanup_proc = NULL;
24 */
25
26/*
27 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30
31#if defined(sun)

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

2430
2431 mtx_lock(&fasttrap_cleanup_mtx);
2432 fasttrap_cleanup_drain = 1;
2433 /* Wait for the cleanup thread to finish up and signal us. */
2434 wakeup(&fasttrap_cleanup_cv);
2435 mtx_sleep(&fasttrap_cleanup_drain, &fasttrap_cleanup_mtx, 0, "ftcld",
2436 0);
2437 fasttrap_cleanup_proc = NULL;
2438 mtx_destroy(&fasttrap_cleanup_mtx);
2438
2439#ifdef DEBUG
2440 mutex_enter(&fasttrap_count_mtx);
2441 ASSERT(fasttrap_pid_count == 0);
2442 mutex_exit(&fasttrap_count_mtx);
2443#endif
2444
2445 kmem_free(fasttrap_tpoints.fth_table,

--- 70 unchanged lines hidden ---
2439
2440#ifdef DEBUG
2441 mutex_enter(&fasttrap_count_mtx);
2442 ASSERT(fasttrap_pid_count == 0);
2443 mutex_exit(&fasttrap_count_mtx);
2444#endif
2445
2446 kmem_free(fasttrap_tpoints.fth_table,

--- 70 unchanged lines hidden ---