Update the SDT(9) examples to reflect the removal of the sname parameter

in r258622.

MFC after:	3 days
This commit is contained in:
markj 2014-04-11 22:45:12 +00:00
parent 6733c8990f
commit 85fdadbf92

View File

@ -200,7 +200,7 @@ of type Destination Unreachable:
.Bd -literal -offset indent
SDT_PROVIDER_DECLARE(icmp);
SDT_PROBE_DEFINE1(icmp, , unreach, pkt_receive, pkt-receive,
SDT_PROBE_DEFINE1(icmp, , unreach, pkt__receive,
"struct icmp *");
.Ed
@ -212,7 +212,7 @@ Consider a DTrace probe which fires when the network stack receives an IP
packet.
Such a probe would be defined by multiple tracepoints:
.Bd -literal -offset indent
SDT_PROBE_DEFINE3(ip, , , receive, receive, "struct ifnet *",
SDT_PROBE_DEFINE3(ip, , , receive, "struct ifnet *",
"struct ip *", "struct ip6_hdr *");
int
@ -268,7 +268,7 @@ all in the
library path.
Then the FreeBSD probe above can be defined with:
.Bd -literal -offset indent
SDT_PROBE_DEFINE1_XLATE(ip, , , receive, receive, "struct icmp *",
SDT_PROBE_DEFINE1_XLATE(ip, , , receive, "struct icmp *",
"struct icmp_hdr_dt *");
.Ed
.Sh SEE ALSO