/usr/share/systemtap/examples/network
NameSizeModeActions
autofs4.meta3970644editdlrm
autofs4.stp41670755editdlrm
connect_stat.meta4040644editdlrm
connect_stat.stp10190755editdlrm
dropwatch.meta4940644editdlrm
dropwatch.stp9000755editdlrm
netdev.meta3890644editdlrm
netdev.stp14580755editdlrm
netfilter_drop.meta6300644editdlrm
netfilter_drop.stp11560755editdlrm
netfilter_summary.meta5870644editdlrm
netfilter_summary.stp5910755editdlrm
netfilter_summary.txt28730644editdlrm
netfilter_summary_json.meta5110644editdlrm
netfilter_summary_json.stp10700644editdlrm
nettop.meta5190644editdlrm
nettop.stp9890755editdlrm
nettop.txt9530644editdlrm
net_xmit_json.meta4530644editdlrm
net_xmit_json.stp18010644editdlrm
nfsd-recent.meta4230644editdlrm
nfsd-recent.stp4420755editdlrm
nfsd-trace.meta3140644editdlrm
nfsd-trace.stp7010644editdlrm
nfsd-trace.txt8760644editdlrm
nfsdtop.meta4050644editdlrm
nfsdtop.stp33850755editdlrm
nfsd_unlink.meta4790644editdlrm
nfsd_unlink.stp5230755editdlrm
packet_contents.meta5500644editdlrm
packet_contents.stp2160755editdlrm
packet_contents.txt20660644editdlrm
sk_stream_wait_memory.meta7420644editdlrm
sk_stream_wait_memory.stp9990755editdlrm
socket-trace.meta7020644editdlrm
socket-trace.stp2220755editdlrm
socktop91440755editdlrm
socktop.meta5480644editdlrm
socktop.txt41350644editdlrm
stp_dump.meta3390644editdlrm
stp_dump.stp5680644editdlrm
stp_dump.txt16320644editdlrm
tcpdumplike.meta3810644editdlrm
tcpdumplike.stp5810755editdlrm
tcpipstat.meta7250644editdlrm
tcpipstat.stp182470755editdlrm
tcpipstat.txt8980644editdlrm
tcp_connections.meta6250644editdlrm
tcp_connections.stp3610755editdlrm
tcp_init_cwnd.meta5890644editdlrm
tcp_init_cwnd.stp3430755editdlrm
tcp_retransmission.meta2860644editdlrm
tcp_retransmission.stp11820644editdlrm
tcp_trace.meta6840644editdlrm
tcp_trace.stp190950755editdlrm
tcp_trace.txt34650644editdlrm
who_sent_it.meta5830644editdlrm
who_sent_it.stp4770644editdlrm
who_sent_it.txt8030644editdlrm
Edit: /usr/share/systemtap/examples/network/netdev.stp (1458B)
#!/usr/bin/stap ############################################################ # netdev.stp # Author: Breno Leitao # An example script to show how a netdev works and its # functions ############################################################ probe netdev.get_stats ? { printf("%s was asked for statistics structure\n", dev_name) } probe netdev.register{ printf("Registering netdev_name %s\n", dev_name) } probe netdev.unregister{ printf("Unregistering netdev %s\n", dev_name) } probe netdev.ioctl{ printf("Netdev ioctl raised with param: %d and arg: %s\n", cmd, arg) } probe netdev.set_promiscuity { if (enable) printf("Device %s entering in promiscuous mode\n", dev_name) else printf("Device %s leaving promiscuous mode\n", dev_name) } probe netdev.change_rx_flag ? { printf("Device %s is changing its RX flags to %d\n", dev_name, flags) } probe netdev.change_mtu { printf("Changing MTU on device %s from %d to %d\n", dev_name, old_mtu, new_mtu) } probe netdev.change_mac { printf("Changing MAC address on device %s from %s to %s\n", dev_name, old_mac, new_mac) } probe netdev.transmit { printf("Device %s is sending (queued) a packet with protocol %d\n", dev_name, protocol) } probe netdev.hard_transmit { printf("Device %s is sending (hard) a packet with protocol %d\n", dev_name, protocol) } probe netdev.rx { printf("Device %s received a packet with protocol %d\n", dev_name, protocol) }