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/dtrace recognize the proc provider a...
details: https://anonhg.NetBSD.org/src/rev/23efcf708687
branches: trunk
changeset: 340783:23efcf708687
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 30 20:59:13 2015 +0000
description:
recognize the proc provider as belonging to sdt
diffstat:
external/cddl/osnet/dev/dtrace/dtrace_ioctl.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 0f35942d92aa -r 23efcf708687 external/cddl/osnet/dev/dtrace/dtrace_ioctl.c
--- a/external/cddl/osnet/dev/dtrace/dtrace_ioctl.c Wed Sep 30 20:36:28 2015 +0000
+++ b/external/cddl/osnet/dev/dtrace/dtrace_ioctl.c Wed Sep 30 20:59:13 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dtrace_ioctl.c,v 1.5 2015/06/19 02:33:00 riastradh Exp $ */
+/* $NetBSD: dtrace_ioctl.c,v 1.6 2015/09/30 20:59:13 christos Exp $ */
/*
* CDDL HEADER START
@@ -660,9 +660,14 @@
if (pvp == NULL && error == 0) {
char name[NAME_MAX];
+ const char *provider;
+ if (strcmp(pvd->dtvd_name, "proc") == 0)
+ provider = "sdt";
+ else
+ provider = pvd->dtvd_name;
if (snprintf(name, sizeof name, "dtrace_%s",
- pvd->dtvd_name) < sizeof name) {
+ provider) < sizeof name) {
error = module_autoload(name,
MODULE_CLASS_MISC);
if (error == 0)
Home |
Main Index |
Thread Index |
Old Index