Netdev Archive on lore.kernel.org help / color / mirror / Atom feed
From: Martin KaFai Lau <kafai@fb.com> To: Cong Wang <xiyou.wangcong@gmail.com> Cc: Linux Kernel Network Developers <netdev@vger.kernel.org>, Qitao Xu <qitao.xu@bytedance.com>, Cong Wang <cong.wang@bytedance.com>, bpf <bpf@vger.kernel.org>, Eric Dumazet <eric.dumazet@gmail.com> Subject: Re: [Patch net-next 02/13] ipv4: introduce tracepoint trace_ip_queue_xmit() Date: Wed, 11 Aug 2021 22:46:54 -0700 [thread overview] Message-ID: <20210812054654.2b6pp5c37kknwdpr@kafai-mbp> (raw) In-Reply-To: <CAM_iQpV42D3HHESF62tmUHn=gB-a-6fqiRJGYaoVp0HyRH=xEA@mail.gmail.com> On Wed, Aug 11, 2021 at 05:37:35PM -0700, Cong Wang wrote: > On Wed, Aug 11, 2021 at 4:08 PM Martin KaFai Lau <kafai@fb.com> wrote: > > Some of the function names are hardly changed. > > This is obviously wrong for two reasons: > > 1. Kernel developers did change them. As a quick example, > tcp_retransmit_skb() has been changed, we do have reasons to only trace > __tcp_retransmit_skb() instead. I did not say it has never changed. how often? I don't believe it changed often enough. > 2. Even if kernel developers never did, compilers can do inline too. For > example, I see nothing to stop compiler to inline tcp_transmit_skb() > which is static and only calls __tcp_transmit_skb(). You explicitly > mark bpf_fentry_test1() as noinline, don't you? Yes, correct, inline is a legit reason. Another one is to track some local variables in the function stack. However, how many functions that you need here are indeed inlined by compiler or need to track the local variables? > I understand you are eager to promote ebpf, however, please keep > reasonable on facts. Absolutely not. There is no need. There is enough scripts using bpf that does network tracing doing useful stuff without adding so many tracepoints in the fast path. I am only exploring other options and trying to understand why it does not work in your case before adding all of them in the fast path. It is sad that you take it this way.
next prev parent reply other threads:[~2021-08-12 5:47 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-05 18:57 [Patch net-next 00/13] net: add more tracepoints to TCP/IP stack Cong Wang 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 [this message] 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=20210812054654.2b6pp5c37kknwdpr@kafai-mbp \ --to=kafai@fb.com \ --cc=bpf@vger.kernel.org \ --cc=cong.wang@bytedance.com \ --cc=eric.dumazet@gmail.com \ --cc=netdev@vger.kernel.org \ --cc=qitao.xu@bytedance.com \ --cc=xiyou.wangcong@gmail.com \ /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).