summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/syscall/uadmin.c
diff options
context:
space:
mode:
authorbrendan <none@none>2008-06-13 19:06:55 -0700
committerbrendan <none@none>2008-06-13 19:06:55 -0700
commit10e6dadfe63181edabc58c8f42e3c56a1cd9ec95 (patch)
tree95d4edf9068228f58a3abddd6b718c98d6f0b919 /usr/src/uts/common/syscall/uadmin.c
parent90bcde942a3919300ffc73f98ea903b58386c395 (diff)
downloadillumos-gate-10e6dadfe63181edabc58c8f42e3c56a1cd9ec95.tar.gz
PSARC 2008/302 DTrace IP Provider
6640019 DTrace IP Provider 6655707 sdt arguments are off-by-one past the 5th 6667364 /usr/demo/dtrace/index.html: URLs to dtrace guide chapters wrong --HG-- rename : usr/src/lib/libdtrace/common/net.d => deleted_files/usr/src/lib/libdtrace/common/net.d
Diffstat (limited to 'usr/src/uts/common/syscall/uadmin.c')
-rw-r--r--usr/src/uts/common/syscall/uadmin.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr/src/uts/common/syscall/uadmin.c b/usr/src/uts/common/syscall/uadmin.c
index a5f92268f2..9a2f01e850 100644
--- a/usr/src/uts/common/syscall/uadmin.c
+++ b/usr/src/uts/common/syscall/uadmin.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -54,6 +54,7 @@
#include <sys/zone.h>
#include <sys/condvar.h>
#include <sys/thread.h>
+#include <sys/sdt.h>
/*
* Administrivia system call. We provide this in two flavors: one for calling
@@ -147,6 +148,7 @@ kadmin(int cmd, int fcn, void *mdep, cred_t *credp)
case A_REMOUNT:
case A_FREEZE:
case A_DUMP:
+ case A_SDTTEST:
if (secpolicy_sys_config(credp, B_FALSE) != 0)
return (EPERM);
break;
@@ -356,6 +358,13 @@ kadmin(int cmd, int fcn, void *mdep, cred_t *credp)
/*NOTREACHED*/
}
+ case A_SDTTEST:
+ {
+ DTRACE_PROBE7(test, int, 1, int, 2, int, 3, int, 4, int, 5,
+ int, 6, int, 7);
+ break;
+ }
+
default:
error = EINVAL;
}