Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/sdt DTrace: update sdt.c handlers to...
details: https://anonhg.NetBSD.org/src/rev/152e85a8cff6
branches: trunk
changeset: 752598:152e85a8cff6
user: darran <darran%NetBSD.org@localhost>
date: Mon Mar 01 22:38:29 2010 +0000
description:
DTrace: update sdt.c handlers to match latest OpenSolaris vendor import.
diffstat:
external/cddl/osnet/dev/sdt/sdt.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r 569660481721 -r 152e85a8cff6 external/cddl/osnet/dev/sdt/sdt.c
--- a/external/cddl/osnet/dev/sdt/sdt.c Mon Mar 01 22:27:07 2010 +0000
+++ b/external/cddl/osnet/dev/sdt/sdt.c Mon Mar 01 22:38:29 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdt.c,v 1.3 2010/03/01 21:10:19 darran Exp $ */
+/* $NetBSD: sdt.c,v 1.4 2010/03/01 22:38:29 darran Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -54,9 +54,9 @@
static int sdt_unload(void);
static void sdt_getargdesc(void *, dtrace_id_t, void *, dtrace_argdesc_t *);
-static void sdt_provide(void *, dtrace_probedesc_t *);
+static void sdt_provide(void *, const dtrace_probedesc_t *);
static void sdt_destroy(void *, dtrace_id_t, void *);
-static void sdt_enable(void *, dtrace_id_t, void *);
+static int sdt_enable(void *, dtrace_id_t, void *);
static void sdt_disable(void *, dtrace_id_t, void *);
static void sdt_load(void *);
@@ -195,7 +195,7 @@
}
static void
-sdt_provide(void *arg, dtrace_probedesc_t *desc)
+sdt_provide(void *arg, const dtrace_probedesc_t *desc)
{
sdt_provider_t *sprov = arg;
int res;
@@ -266,7 +266,7 @@
}
}
-static void
+static int
sdt_enable(void *arg, dtrace_id_t id, void *parg)
{
sdt_provider_t *sprov = arg;
@@ -290,6 +290,8 @@
break;
}
}
+
+ return 0;
}
static void
Home |
Main Index |
Thread Index |
Old Index