On Tue, Oct 10, 2017 at 02:37:11PM -0700, Cong Wang wrote: > > > > More concrete, if you can make this trace_tcp_retransmit_skb() to record > > sk, skb pointers and err code at the end of __tcp_retransmit_skb() it will > > solve > > our need as well. > > > Note, currently I only call trace_tcp_retransmit_skb() for successful > retransmissions, since you mentioned err code, I guess you want it > for failures too? I am not sure if tracing unsuccessful TCP retransmissions > is meaningful here, I guess it's needed for BPF to track TCP states? > > It doesn't harm to add it, at least we can filter out err!=0 since we > only care about successful ones.
right now only successful rxmit would be enough for us. Only that 'err' is hard to do via kprobe, since it's in some random register and debug info is generally not available. If you want to drop err for now and call tracepoint only on success, I think, that's fine too. Need to double check. Only sk and skb pointers are must have. Thanks!