środa, 18 czerwca 2008

DTrace IP Provider

# dtrace -l | awk '{if ($2 == "ip") print $0}'
1492 ip ip ip_wput_local_v6 receive
1493 ip ip ip_rput_v6 receive
1494 ip ip ip_wput_local receive
1495 ip ip ip_input receive
1514 ip ip ip_inject_impl send
1515 ip ip udp_xmit send
1516 ip ip tcp_lsosend_data send
1517 ip ip tcp_multisend send
1518 ip ip tcp_send_data send
1519 ip ip ip_multicast_loopback send
1520 ip ip ip_xmit_v6 send
1521 ip ip ip_wput_ire_v6 send
1522 ip ip ip_xmit_v4 send
1523 ip ip ip_wput_ipsec_out send
1524 ip ip ip_wput_ipsec_out_v6 send
1525 ip ip ip_wput_frag send
1526 ip ip ip_wput_frag_mdt send
1527 ip ip ip_wput_ire send
1528 ip ip ip_fast_forward send



# dtrace -n 'ip:::send {@[execname]=count()}'
dtrace: description 'ip:::send ' matched 15 probes
^C

bonobo-activatio 1
esd 1
gconf-sanity-che 1
gdmprefetch 1
iiimx-settings-i 1
ksh 1
rm 1
run-mozilla.sh 1
nfsmapid 2
nscd 2
quota 2
gconftool-2 3
gnome-vfs-daemon 3
dbus-daemon 4
dtsearchpath 4
nfs4cbd 4
md5sum 6
dtappgather 7
firefox 7
sdt_shell 8
iiim-xbe 9
xmbind 9
mv 10
Xorg 11
bash 11
xscreensaver 13
xdg-user-dirs-up 15
dbus-launch 16
xsetroot 16
touch 18
echo 22
mkfontdir 22
iiimx 23
gdm-binary 38
gnome-volume-man 43
clock-applet 47
metacity 61
gnome-terminal 72
Xsession 82
gnome-settings-d 178
mixer_applet2 386
battstat-applet- 390
wnck-applet 405
gam_server 441
nautilus 620
gnome-panel 656
gnome-session 681
gconfd-2 1190
firefox-bin 2815
sched 21545


# dtrace -n 'ip::tcp_send_data: {@[execname]=count();}'
dtrace: description 'ip::tcp_send_data: ' matched 1 probe
^C

sshd 1
firefox-bin 31
sched 34
gam_server 68



# dtrace -n 'ip:::'
dtrace: description 'ip:::' matched 19 probes
CPU ID FUNCTION:NAME
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1518 tcp_send_data:send
^C
0 1518 tcp_send_data:send
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1518 tcp_send_data:send
0 1495 ip_input:receive
0 1495 ip_input:receive
0 1518 tcp_send_data:send
0 1518 tcp_send_data:send

1 komentarz:

Trochej pisze...

Nareszcie! :)