From mboxrd@z Thu Jan 1 00:00:00 1970 From: sargun@sargun.me (Sargun Dhillon) Date: Sat, 16 Apr 2016 16:53:19 -0700 Subject: K(ret)probe for TCP time to connect? Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org I'm working on instrumenting a TCP connections to assist in making load balancing decisions elsewhere. Specifically, I'm looking to get statistics for the time to connect, and notification of failed connects. I initially tried to put kretprobes around inet_stream_connect, but if the socket is in non-blocking mode that notification happens asynchronously. I can't figure out a (good) way to keep track of this data. Any suggestions?