Deleted Added
full compact
fasttrap.c (277300) fasttrap.c (277914)
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 277300 2015-01-17 14:44:59Z smh $
23 * $FreeBSD: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c 277914 2015-01-30 04:51:59Z markj $
24 */
25
26/*
27 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30
31/*

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

290#else
291 ksiginfo_t *ksi = kmem_zalloc(sizeof (ksiginfo_t), KM_SLEEP);
292
293 ksiginfo_init(ksi);
294 ksi->ksi_signo = SIGTRAP;
295 ksi->ksi_code = TRAP_DTRACE;
296 ksi->ksi_addr = (caddr_t)pc;
297 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/*

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

290#else
291 ksiginfo_t *ksi = kmem_zalloc(sizeof (ksiginfo_t), KM_SLEEP);
292
293 ksiginfo_init(ksi);
294 ksi->ksi_signo = SIGTRAP;
295 ksi->ksi_code = TRAP_DTRACE;
296 ksi->ksi_addr = (caddr_t)pc;
297 PROC_LOCK(p);
298 (void) tdksignal(t, SIGTRAP, ksi);
298 (void) tdsendsignal(p, t, SIGTRAP, ksi);
299 PROC_UNLOCK(p);
300#endif
301}
302
303#ifndef illumos
304/*
305 * Obtain a chunk of scratch space in the address space of the target process.
306 */

--- 2422 unchanged lines hidden ---
299 PROC_UNLOCK(p);
300#endif
301}
302
303#ifndef illumos
304/*
305 * Obtain a chunk of scratch space in the address space of the target process.
306 */

--- 2422 unchanged lines hidden ---