Skip to content
Commit caabd859 authored by fuyuanli's avatar fuyuanli Committed by David S. Miller
Browse files

tcp: Add skb addr and sock addr to arguments of tracepoint tcp_probe.



It is useful to expose skb addr and sock addr to user in tracepoint
tcp_probe, so that we can get more information while monitoring
receiving of tcp data, by ebpf or other ways.

For example, we need to identify a packet by seq and end_seq when
calculate transmit latency between layer 2 and layer 4 by ebpf, but which is
not available in tcp_probe, so we can only use kprobe hooking
tcp_rcv_established to get them. But we can use tcp_probe directly if skb
addr and sock addr are available, which is more efficient.

Signed-off-by: default avatarfuyuanli <fuyuanli@didiglobal.com>
Reviewed-by: default avatarJason Xing <kerneljasonxing@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6025b913
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment