lkml.org 
[lkml]   [2024]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH net-next v2] tcp: Add skb addr and sock addr to arguments of tracepoint tcp_probe.
Eric Dumazet <edumazet@google.com> 于2024年3月4日周一 16:13写道:
>
> On Mon, Mar 4, 2024 at 4:46 AM fuyuanli <fuyuanli@didiglobal.com> wrote:
> >
> > It is useful to expose skb addr and sock addr to user in tracepoint
> > tcp_probe, so that we can get more information while monitoring
> > receiving of tcp data, by ebpf or other ways.
> >
> > For example, we need to identify a packet by seq and end_seq when
> > calculate transmit latency between lay 2 and lay 4 by ebpf, but which is
>
> Please use "layer 2 and layer 4".
>
> > not available in tcp_probe, so we can only use kprobe hooking
> > tcp_rcv_esatblised to get them. But we can use tcp_probe directly if skb
> > addr and sock addr are available, which is more efficient.
>
> Okay, but please fix the typo. Correct function name is tcp_rcv_established
>
> >
> > Signed-off-by: fuyuanli <fuyuanli@didiglobal.com>
> > Link: https://lore.kernel.org/netdev/20240229052813.GA23899@didi-ThinkCentre-M920t-N000/
> >
>
OK, I will submit a v3 patch, thanks for your review :)
fuyuanli

\
 
 \ /
  Last update: 2024-05-27 15:33    [W:0.285 / U:2.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site