Gliush Notebook

Notes about IT, work, and life

Notes for episode-0184

Posted at — Mar 25, 2018

TCP Tracepoints

http://www.brendangregg.com/blog/2018-03-22/tcp-tracepoints.html

# trace -t 't:sock:inet_sock_set_state "%llx: %d -> %d", args->skaddr, args->oldstate, args->newstate'
       TIME     PID     TID     COMM            FUNC             -
       1.690191 17308   17308   curl            inet_sock_set_state ffff9fd7db589800: 7 -> 2
       1.690798 0       0       swapper/24      inet_sock_set_state ffff9fd7db589800: 2 -> 1
# tcpstates
SKADDR           C-PID C-COMM     LADDR           LPORT RADDR         RPORT OLDSTATE    -> NEWSTATE    MS
ffff9fd7e8192000 22384 curl       100.66.100.185  0     52.33.159.26  80    CLOSE       -> SYN_SENT    0.000
ffff9fd7e8192000 0     swapper/5  100.66.100.185  63446 52.33.159.26  80    SYN_SENT    -> ESTABLISHED 1.373