]> www.infradead.org Git - users/jedix/linux-maple.git/commit
trace: tcp: Add tracepoint for tcp_sendmsg_locked()
authorBreno Leitao <leitao@debian.org>
Tue, 8 Apr 2025 18:32:02 +0000 (11:32 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Apr 2025 01:34:05 +0000 (18:34 -0700)
commit0f08335ade71273f89d19412268b48b55f3e3726
tree5cd2ae7708d894c5823c0482c67db0be54ea697c
parentb1e904999542ad6764eafa54545f1c55776006d1
trace: tcp: Add tracepoint for tcp_sendmsg_locked()

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/70168c8f-bf52-4279-b4c4-be64527aa1ac@kernel.org/
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250408-tcpsendmsg-v3-2-208b87064c28@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/trace/events/tcp.h
kernel/bpf/btf.c
net/ipv4/tcp.c