summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_priv.c
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-08-22 11:18:57 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-08-22 11:18:57 +0000
commitea11ba678823dbe5705fff2f6b2dbd5434fdea02 (patch)
tree6ac97777920c38ee27a1167a56b6790fef911dd1 /sys/kern/kern_priv.c
parent46e8bd7ded82faf30289ba940bca95b4cba0d065 (diff)
downloadFreeBSD-src-ea11ba678823dbe5705fff2f6b2dbd5434fdea02.zip
FreeBSD-src-ea11ba678823dbe5705fff2f6b2dbd5434fdea02.tar.gz
Add an extra comment to the SDT probes definition. This allows us to get
use '-' in probe names, matching the probe names in Solaris.[1] Add userland SDT probes definitions to sys/sdt.h. Sponsored by: The FreeBSD Foundation Discussed with: rwaston [1]
Diffstat (limited to 'sys/kern/kern_priv.c')
-rw-r--r--sys/kern/kern_priv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_priv.c b/sys/kern/kern_priv.c
index 352e502..fd3a95c 100644
--- a/sys/kern/kern_priv.c
+++ b/sys/kern/kern_priv.c
@@ -60,8 +60,8 @@ SYSCTL_INT(_security_bsd, OID_AUTO, suser_enabled, CTLFLAG_RW,
TUNABLE_INT("security.bsd.suser_enabled", &suser_enabled);
SDT_PROVIDER_DEFINE(priv);
-SDT_PROBE_DEFINE1(priv, kernel, priv_check, priv_ok, "int");
-SDT_PROBE_DEFINE1(priv, kernel, priv_check, priv_err, "int");
+SDT_PROBE_DEFINE1(priv, kernel, priv_check, priv_ok, priv-ok, "int");
+SDT_PROBE_DEFINE1(priv, kernel, priv_check, priv_err, priv-err, "int");
/*
* Check a credential for privilege. Lots of good reasons to deny privilege;
OpenPOWER on IntegriCloud