Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F3500571
udpio.d
tuexen (Michael Tuexen)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
tuexen
Jun 28 2018, 2:27 PM
2018-06-28 14:27:00 (UTC+0)
Size
822 B
Referenced Files
None
Subscribers
None
udpio.d
View Options
#
!/
usr
/
sbin
/
dtrace
-
s
#
pragma
D
option
quiet
#
pragma
D
option
switchrate
=
10
Hz
dtrace
:::
BEGIN
{
printf
(
" %10s %36s %-36s %6s\n"
,
"DELTA(us)"
,
"SOURCE"
,
"DEST"
,
"BYTES"
);
last
=
timestamp
;
}
udp
:::
send
{
this
->
elapsed
=
(
timestamp
-
last
)
/
1000
;
self
->
dest
=
strjoin
(
strjoin
(
args
[
2
]->
ip_daddr
,
":"
),
lltostr
(
args
[
4
]->
udp_dport
));
printf
(
" %10d %30s:%-5d -> %-36s %6d\n"
,
this
->
elapsed
,
args
[
2
]->
ip_saddr
,
args
[
4
]->
udp_sport
,
self
->
dest
,
args
[
4
]->
udp_length
);
last
=
timestamp
;
}
udp
:::
receive
{
this
->
elapsed
=
(
timestamp
-
last
)
/
1000
;
self
->
dest
=
strjoin
(
strjoin
(
args
[
2
]->
ip_saddr
,
":"
),
lltostr
(
args
[
4
]->
udp_sport
));
printf
(
" %10d %30s:%-5d <- %-36s %6d\n"
,
this
->
elapsed
,
args
[
2
]->
ip_daddr
,
args
[
4
]->
udp_dport
,
self
->
dest
,
args
[
4
]->
udp_length
);
last
=
timestamp
;
}
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1430190
Default Alt Text
udpio.d (822 B)
Attached To
Mode
D16046: Add UDP receive probes
Attached
Detach File
Event Timeline
Log In to Comment