dtrace_load.c (179237) | dtrace_load.c (184698) |
---|---|
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 --- 4 unchanged lines hidden (view full) --- 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 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 * | 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 --- 4 unchanged lines hidden (view full) --- 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 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 * $FreeBSD: head/sys/cddl/dev/dtrace/dtrace_load.c 179237 2008-05-23 05:59:42Z jb $ | 21 * $FreeBSD: head/sys/cddl/dev/dtrace/dtrace_load.c 184698 2008-11-05 19:39:11Z rodrigc $ |
22 * 23 */ 24 25static void 26dtrace_ap_start(void *dummy) 27{ 28 int i; 29 --- 119 unchanged lines hidden (view full) --- 149 150 mutex_enter(&cpu_lock); 151 152 /* Setup the boot CPU */ 153 (void) dtrace_cpu_setup(CPU_CONFIG, 0); 154 155 mutex_exit(&cpu_lock); 156 | 22 * 23 */ 24 25static void 26dtrace_ap_start(void *dummy) 27{ 28 int i; 29 --- 119 unchanged lines hidden (view full) --- 149 150 mutex_enter(&cpu_lock); 151 152 /* Setup the boot CPU */ 153 (void) dtrace_cpu_setup(CPU_CONFIG, 0); 154 155 mutex_exit(&cpu_lock); 156 |
157#if __FreeBSD_version < 800039 |
|
157 /* Enable device cloning. */ 158 clone_setup(&dtrace_clones); 159 160 /* Setup device cloning events. */ 161 eh_tag = EVENTHANDLER_REGISTER(dev_clone, dtrace_clone, 0, 1000); | 158 /* Enable device cloning. */ 159 clone_setup(&dtrace_clones); 160 161 /* Setup device cloning events. */ 162 eh_tag = EVENTHANDLER_REGISTER(dev_clone, dtrace_clone, 0, 1000); |
163#else 164 dtrace_dev = make_dev(&dtrace_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "dtrace/dtrace"); 165#endif |
|
162 163 return; 164} | 166 167 return; 168} |