summaryrefslogtreecommitdiffstats
path: root/share/man/man9
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2015-03-12 01:03:04 +0000
committermarkj <markj@FreeBSD.org>2015-03-12 01:03:04 +0000
commit27912a446f0239656b80c34869f2251d446d63e2 (patch)
tree38e4d1f8f464792058e41af42f8978ec8e7b1604 /share/man/man9
parent6e2bec33ec123830758c2be61b7e9c64c4b05321 (diff)
downloadFreeBSD-src-27912a446f0239656b80c34869f2251d446d63e2.zip
FreeBSD-src-27912a446f0239656b80c34869f2251d446d63e2.tar.gz
MFC r279802: Don't specify a function name in the example SDT(9) probe.
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/SDT.914
1 files changed, 7 insertions, 7 deletions
diff --git a/share/man/man9/SDT.9 b/share/man/man9/SDT.9
index bc31fc1..ba8ccc5 100644
--- a/share/man/man9/SDT.9
+++ b/share/man/man9/SDT.9
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 18, 2014
+.Dd March 8, 2015
.Dt SDT 9
.Os
.Sh NAME
@@ -196,13 +196,13 @@ They are meant to be added to executable code and can be used to instrument the
code in which they are called.
.Sh EXAMPLES
The following probe definition will create a DTrace probe called
-.Ql icmp::unreach:pkt-receive ,
+.Ql icmp:::receive-unreachable ,
which would hypothetically be triggered when the kernel receives an ICMP packet
of type Destination Unreachable:
.Bd -literal -offset indent
SDT_PROVIDER_DECLARE(icmp);
-SDT_PROBE_DEFINE1(icmp, , unreach, pkt__receive,
+SDT_PROBE_DEFINE1(icmp, , , receive__unreachable,
"struct icmp *");
.Ed
@@ -286,10 +286,10 @@ This manual page was written by
.Sh BUGS
The
.Nm
-macros allow the module name of a probe to be specified as part of a probe
-definition.
-However, the DTrace framework uses the module name of probes to determine
-which probes should be destroyed when a kernel module is unloaded, so the module
+macros allow the module and function names of a probe to be specified as part of
+a probe definition.
+The DTrace framework uses the module name of probes to determine which probes
+should be destroyed when a kernel module is unloaded, so the module
name of a probe should match the name of the module in which its defined.
.Nm
will set the module name properly if it is left unspecified in the probe
OpenPOWER on IntegriCloud