/* * Prints details on specifically what connections * suffered due to Accept Queue overflow. It can be greatly * useful for identifying periodically hung applications that * fails to accept() connections fast enough. * * Usage: stap acceptq.stp */ 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) { return __tcp_skb_sport(__get_skb_tcphdr(skb)) }