Netdev Archive on lore.kernel.org help / color / mirror / Atom feed
From: Cong Wang <xiyou.wangcong@gmail.com> To: netdev@vger.kernel.org Cc: Cong Wang <cong.wang@bytedance.com> Subject: [Patch net-next 00/13] net: add more tracepoints to TCP/IP stack Date: Thu, 5 Aug 2021 11:57:37 -0700 [thread overview] Message-ID: <20210805185750.4522-1-xiyou.wangcong@gmail.com> (raw) From: Cong Wang <cong.wang@bytedance.com> This patchset adds 12 more tracepoints to TCP/IP stack, both IPv4 and IPv6. The goal is to trace skb in different layers and to measure the latency of each layer. We only add information we need to each trace point. If any other information is needed, it is easy to extend without breaking ABI, see commit 3dd344ea84e1 ("net: tracepoint: exposing sk_family in all tcp:tracepoints"). And similar to trace_qdisc_enqueue(), we only intend to trace success cases, because most (if not all) failure cases can be traced via kfree_skb() even if they are really interesting. Lastly, per previous discussion, trace ring buffer is only accessible to privileged users, it is safe to use a real kernel address with %px. Qitao Xu (13): net: introduce a new header file include/trace/events/ip.h ipv4: introduce tracepoint trace_ip_queue_xmit() tcp: introduce tracepoint trace_tcp_transmit_skb() udp: introduce tracepoint trace_udp_send_skb() udp: introduce tracepoint trace_udp_v6_send_skb() ipv4: introduce tracepoint trace_ip_rcv() ipv6: introduce tracepoint trace_ipv6_rcv() ipv4: introduce tracepoint trace_ip_local_deliver_finish() udp: introduce tracepoint trace_udp_rcv() ipv6: introduce tracepoint trace_udpv6_rcv() tcp: introduce tracepoint trace_tcp_v4_rcv() ipv6: introduce tracepoint trace_tcp_v6_rcv() sock: introduce tracepoint trace_sk_data_ready() include/trace/events/ip.h | 140 ++++++++++++++++++++++++++++++++++++ include/trace/events/sock.h | 19 +++++ include/trace/events/tcp.h | 27 ++++++- include/trace/events/udp.h | 74 +++++++++++++++++++ net/core/net-traces.c | 7 ++ net/ipv4/ip_input.c | 9 ++- net/ipv4/ip_output.c | 10 ++- net/ipv4/tcp_input.c | 8 ++- net/ipv4/tcp_ipv4.c | 2 + net/ipv4/tcp_output.c | 8 ++- net/ipv4/udp.c | 17 ++++- net/ipv6/ip6_input.c | 5 +- net/ipv6/tcp_ipv6.c | 3 + net/ipv6/udp.c | 9 ++- 14 files changed, 327 insertions(+), 11 deletions(-) create mode 100644 include/trace/events/ip.h -- 2.27.0
next reply other threads:[~2021-08-05 18:57 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-05 18:57 Cong Wang [this message] 2021-08-05 18:57 ` [Patch net-next 01/13] net: introduce a new header file include/trace/events/ip.h Cong Wang 2021-08-05 18:57 ` [Patch net-next 02/13] ipv4: introduce tracepoint trace_ip_queue_xmit() Cong Wang 2021-08-06 10:08 ` Eric Dumazet 2021-08-09 20:32 ` Cong Wang 2021-08-11 21:22 ` Martin KaFai Lau 2021-08-11 22:48 ` Cong Wang 2021-08-11 23:08 ` Martin KaFai Lau 2021-08-12 0:37 ` Cong Wang 2021-08-12 5:46 ` Martin KaFai Lau 2021-08-05 18:57 ` [Patch net-next 03/13] tcp: introduce tracepoint trace_tcp_transmit_skb() Cong Wang 2021-08-05 18:57 ` [Patch net-next 04/13] udp: introduce tracepoint trace_udp_send_skb() Cong Wang 2021-08-05 18:57 ` [Patch net-next 05/13] udp: introduce tracepoint trace_udp_v6_send_skb() Cong Wang 2021-08-05 18:57 ` [Patch net-next 06/13] ipv4: introduce tracepoint trace_ip_rcv() Cong Wang 2021-08-05 18:57 ` [Patch net-next 07/13] ipv6: introduce tracepoint trace_ipv6_rcv() Cong Wang 2021-08-05 18:57 ` [Patch net-next 08/13] ipv4: introduce tracepoint trace_ip_local_deliver_finish() Cong Wang 2021-08-05 18:57 ` [Patch net-next 09/13] udp: introduce tracepoint trace_udp_rcv() Cong Wang 2021-08-05 18:57 ` [Patch net-next 10/13] ipv6: introduce tracepoint trace_udpv6_rcv() Cong Wang 2021-08-05 18:57 ` [Patch net-next 11/13] tcp: introduce tracepoint trace_tcp_v4_rcv() Cong Wang 2021-08-05 18:57 ` [Patch net-next 12/13] ipv6: introduce tracepoint trace_tcp_v6_rcv() Cong Wang 2021-08-05 18:57 ` [Patch net-next 13/13] sock: introduce tracepoint trace_sk_data_ready() Cong Wang 2021-08-06 2:22 ` [Patch net-next 00/13] net: add more tracepoints to TCP/IP stack Cong Wang
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210805185750.4522-1-xiyou.wangcong@gmail.com \ --to=xiyou.wangcong@gmail.com \ --cc=cong.wang@bytedance.com \ --cc=netdev@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).