Merge branch 'tcp-tracepoints'
Song Liu says:
====================
net: add a set of tracepoints to tcp stack
Changes from v1:
Fix build error (with ipv6 as ko) by adding EXPORT_TRACEPOINT_SYMBOL_GPL
for trace_tcp_send_reset.
These patches add the following tracepoints to tcp stack.
tcp_send_reset
tcp_receive_reset
tcp_destroy_sock
tcp_set_state
These tracepoints can be used to track TCP state changes. Such state
changes include but are not limited to: connection establish,
connection termination, tx and rx of RST, various retransmits.
Currently, we use the following kprobes to trace these events:
int kprobe__tcp_validate_incoming
int kprobe__tcp_send_active_reset
int kprobe__tcp_v4_send_reset
int kprobe__tcp_v6_send_reset
int kprobe__tcp_v4_destroy_sock
int kprobe__tcp_set_state
int kprobe__tcp_retransmit_skb
These tracepoints will help us simplify this work.
====================
Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/trace/events/tcp.h 177 additions, 4 deletionsinclude/trace/events/tcp.h
- net/core/net-traces.c 2 additions, 0 deletionsnet/core/net-traces.c
- net/ipv4/tcp.c 4 additions, 0 deletionsnet/ipv4/tcp.c
- net/ipv4/tcp_input.c 3 additions, 0 deletionsnet/ipv4/tcp_input.c
- net/ipv4/tcp_ipv4.c 7 additions, 1 deletionnet/ipv4/tcp_ipv4.c
- net/ipv4/tcp_output.c 5 additions, 0 deletionsnet/ipv4/tcp_output.c
- net/ipv6/tcp_ipv6.c 8 additions, 2 deletionsnet/ipv6/tcp_ipv6.c
Loading
Please register or sign in to comment