From owner-p4-projects@FreeBSD.ORG Tue Mar 11 18:21:23 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 55AA11065675; Tue, 11 Mar 2008 18:21:23 +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 151161065673 for ; Tue, 11 Mar 2008 18:21:23 +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 02BBA8FC14 for ; Tue, 11 Mar 2008 18:21:23 +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 m2BILMLV006920 for ; Tue, 11 Mar 2008 18:21:22 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2BILMAX006918 for perforce@freebsd.org; Tue, 11 Mar 2008 18:21:22 GMT (envelope-from jb@freebsd.org) Date: Tue, 11 Mar 2008 18:21:22 GMT Message-Id: <200803111821.m2BILMAX006918@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 137419 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: Tue, 11 Mar 2008 18:21:23 -0000 http://perforce.freebsd.org/chv.cgi?CH=137419 Change 137419 by jb@jb_freebsd8 on 2008/03/11 18:20:31 I created this file from scratch and I want people to be able to use it as a template to start writing a DTrace provider without any (additional) license hassles, so I'll remove the license altogether. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/prototype.c#9 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/prototype.c#9 (text+ko) ==== @@ -1,34 +1,11 @@ /* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License (the "License"). - * You may not use this file except in compliance with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] + * This file is freeware. You are free to use it and add your own + * license. * - * CDDL HEADER END - * - * Portions Copyright 2006-2008 John Birrell jb@freebsd.org - * * $FreeBSD$ * */ -/* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - #include #include #include @@ -40,6 +17,7 @@ static d_open_t prototype_open; static int prototype_unload(void); +static void prototype_getargdesc(void *, dtrace_id_t, void *, dtrace_argdesc_t *); static void prototype_provide(void *, dtrace_probedesc_t *); static void prototype_destroy(void *, dtrace_id_t, void *); static void prototype_enable(void *, dtrace_id_t, void *); @@ -67,9 +45,9 @@ prototype_disable, NULL, NULL, + prototype_getargdesc, NULL, NULL, - NULL, prototype_destroy }; @@ -77,6 +55,11 @@ static dtrace_provider_id_t prototype_id; static void +prototype_getargdesc(void *arg, dtrace_id_t id, void *parg, dtrace_argdesc_t *desc) +{ +} + +static void prototype_provide(void *arg, dtrace_probedesc_t *desc) { }