From owner-p4-projects@FreeBSD.ORG Mon Dec 31 01:29:37 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3F27316A46C; Mon, 31 Dec 2007 01:29:37 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 053EA16A469 for ; Mon, 31 Dec 2007 01:29:37 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id EBBE313C457 for ; Mon, 31 Dec 2007 01:29:36 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBV1Tawu088787 for ; Mon, 31 Dec 2007 01:29:36 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBV1Ta8R088784 for perforce@freebsd.org; Mon, 31 Dec 2007 01:29:36 GMT (envelope-from jb@freebsd.org) Date: Mon, 31 Dec 2007 01:29:36 GMT Message-Id: <200712310129.lBV1Ta8R088784@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 132139 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2007 01:29:37 -0000 http://perforce.freebsd.org/chv.cgi?CH=132139 Change 132139 by jb@jb_freebsd1 on 2007/12/31 01:28:48 Delete some Solaris-specific code that we do in a very different way. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_load.c#20 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_load.c#20 (text+ko) ==== @@ -61,31 +61,6 @@ mutex_enter(&dtrace_lock); #ifdef DOODAD - if (ddi_soft_state_init(&dtrace_softstate, - sizeof (dtrace_state_t), 0) != 0) { - cmn_err(CE_NOTE, "/dev/dtrace failed to initialize soft state"); - mutex_exit(&cpu_lock); - mutex_exit(&dtrace_provider_lock); - mutex_exit(&dtrace_lock); - return (DDI_FAILURE); - } - - if (ddi_create_minor_node(devi, DTRACEMNR_DTRACE, S_IFCHR, - DTRACEMNRN_DTRACE, DDI_PSEUDO, NULL) == DDI_FAILURE || - ddi_create_minor_node(devi, DTRACEMNR_HELPER, S_IFCHR, - DTRACEMNRN_HELPER, DDI_PSEUDO, NULL) == DDI_FAILURE) { - cmn_err(CE_NOTE, "/dev/dtrace couldn't create minor nodes"); - ddi_remove_minor_node(devi, NULL); - ddi_soft_state_fini(&dtrace_softstate); - mutex_exit(&cpu_lock); - mutex_exit(&dtrace_provider_lock); - mutex_exit(&dtrace_lock); - return (DDI_FAILURE); - } - - ddi_report_dev(devi); - dtrace_devi = devi; - dtrace_modload = dtrace_module_loaded; dtrace_modunload = dtrace_module_unloaded; dtrace_cpu_init = dtrace_cpu_setup_initial;