PERFORCE change 137419 for review
John Birrell
jb at FreeBSD.org
Tue Mar 11 18:21:23 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=137419
Change 137419 by jb at 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 at freebsd.org
- *
* $FreeBSD$
*
*/
-/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
@@ -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)
{
}
More information about the p4-projects
mailing list