mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
MFC r264363:
Update the SDT(9) example to reflect the removal of the sname parameter in r258622.
This commit is contained in:
parent
9b29d96afd
commit
2c76c28e0a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=269255
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user