This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
probe begin { | |
printf("time (us) \tacceptq\tqmax\tlocal addr\tremote_addr\n") | |
} | |
function skb_get_remote_v4addr:string(skb:long) | |
{ | |
return format_ipaddr(__ip_skb_daddr(__get_skb_iphdr(skb)), 2 /* AF_INET */) | |
} | |
function skb_get_remote_port:long(skb:long) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global tm_tcpm_ts | |
probe begin { | |
printf("Starting detecting...\n") | |
} | |
// $tm can't read in function tcp_peer_is_proven in our envirionment (kernel 3.10.0-693.11.1.el7.x86_64). | |
// So the alternative way is read it from another function tcpm_check_stamp which is called in tcp_peer_is_proven. | |
probe kernel.function("tcpm_check_stamp").return { | |
tm_tcpm_ts = $tm->tcpm_ts; |