Deleted Added
full compact
fasttrap.c (211738) fasttrap.c (211745)
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 211738 2010-08-24 11:11:58Z rpaulo $
23 * $FreeBSD: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c 211745 2010-08-24 12:12:03Z rpaulo $
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)

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

272#else
273 ksiginfo_t *ksi = kmem_zalloc(sizeof (ksiginfo_t), KM_SLEEP);
274
275 ksiginfo_init(ksi);
276 ksi->ksi_signo = SIGTRAP;
277 ksi->ksi_code = TRAP_DTRACE;
278 ksi->ksi_addr = (caddr_t)pc;
279 PROC_LOCK(p);
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)

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

272#else
273 ksiginfo_t *ksi = kmem_zalloc(sizeof (ksiginfo_t), KM_SLEEP);
274
275 ksiginfo_init(ksi);
276 ksi->ksi_signo = SIGTRAP;
277 ksi->ksi_code = TRAP_DTRACE;
278 ksi->ksi_addr = (caddr_t)pc;
279 PROC_LOCK(p);
280 (void) pksignal(p, SIGTRAP, ksi);
280 (void) tdksignal(t, SIGTRAP, ksi);
281 PROC_UNLOCK(p);
282#endif
283}
284
285/*
286 * This function ensures that no threads are actively using the memory
287 * associated with probes that were formerly live.
288 */

--- 2201 unchanged lines hidden ---
281 PROC_UNLOCK(p);
282#endif
283}
284
285/*
286 * This function ensures that no threads are actively using the memory
287 * associated with probes that were formerly live.
288 */

--- 2201 unchanged lines hidden ---