On 4/8/25 12:32 PM, Breno Leitao wrote: > Add a tracepoint to monitor TCP send operations, enabling detailed > visibility into TCP message transmission. > > Create a new tracepoint within the tcp_sendmsg_locked function, > capturing traditional fields along with size_goal, which indicates the > optimal data size for a single TCP segment. Additionally, a reference to > the struct sock sk is passed, allowing direct access for BPF programs. > The implementation is largely based on David's patch[1] and suggestions. > > Link: > https://lore.kernel.org/all/[email protected]/ > [1] > Signed-off-by: Breno Leitao <[email protected]> > --- > include/trace/events/tcp.h | 24 ++++++++++++++++++++++++ > kernel/bpf/btf.c | 1 + > net/ipv4/tcp.c | 2 ++ > 3 files changed, 27 insertions(+) >
Reviewed-by: David Ahern <[email protected]>
