Brendan Gregg has developed a great tool, "tcpretrans" based on the Dynamic Tracing feature of the Linux kernel. He explained it here: https://www.brendangregg.com/blog/2014-09-06/linux-ftrace-tcp-retransmit-tracing.html
The tool utilizes /sys/kernel/debug/tracing
to dynamically trace the TCP-retransmits that happen. Is there a way to translate this to a DTrace script that could be utilized for such a purpose.