Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1701375lqg; Mon, 4 Mar 2024 00:32:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXI1YJmKL3g3UbhqTSpzV5hdhKOqfpcD6AYf5xRriQxnR1TK1P9DCCWJghnQCQo7dMsM9+GHSvKoa11a455GyafQKkjiCU96n2qjQ5pZw== X-Google-Smtp-Source: AGHT+IEQBlv2WMq0QK0eV0+pEnQIrSBZCB8F1IE2FcMMpK9zUeXy9sTVbrXB0FUnD00veNHfJoJr X-Received: by 2002:a9d:62cf:0:b0:6e4:e7ac:37bd with SMTP id z15-20020a9d62cf000000b006e4e7ac37bdmr1922693otk.10.1709541156096; Mon, 04 Mar 2024 00:32:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709541156; cv=pass; d=google.com; s=arc-20160816; b=XgmjH4hggTJAK3Ne9r4MdJSwz+Cw34C/5MHlK6PQ+kIB/1zjfDXOiSWek7I5CY4sSZ R77USYvUuPocA82qluYlblGT2AclzrYg/TICo5F4ubEiOseR+N0I3gKW4mCtj46CqSPR S6f3qesAkzUPmutby3dIExTbK0y7pC7upUY+MuDg+Ky9ekiISxNObuoUR0gTlNPffOZC fAZia7za9js10kiHC2Q6qXpdfUBNzfzziOWwcuchlmWYxHQ3+X9TE+/Lx1xITK8AyH18 XxZMYnsvJUmktJcNN8ve9ZwJra2WnywQNjjlSOXi5aRJ7I5CQ3tv5D85QfdL3zD/FC/J EBVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=COjzYZytZzogQjpL44Dma0WCaVOUhQ30atrZWud4MLo=; fh=nNgt0ngRAHbUWT6fn0ymwtfhjYBiQoRoyoH0JGg6cK0=; b=wqsjtSUUeSO3pIU1VIyRPxU1WntVU38Pe1i/SVhiS6RdaYUmNGRNs60+gEeELJAGGQ A8VsZ3AB2CzUtfRtEWb/p99UfNsLJdWHwID6W+ShiCvkOqJspp0YfDzfeITsiVYgmrLM XgMEZHLnKzjMcTQs5sSUHPptemYZr4LY0bovc9QHImL98vK246SdbhcPjd5rzjmvXB1x /OAHowOvdZqyyMjKHMpSDc2gJ1R542tF7LgtLcHs+wHwu9u+PmPokx0bLMRncjtF3f2p BStWM4D+BFRc1jdnR3modlhoWFjPFkJbYiN5KT5DIMchQvgnpBCyjArUJ9c8KqDm5wJ0 m7rA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LTJvRAmZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-90205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y13-20020a63180d000000b005ce016cce21si7935987pgl.191.2024.03.04.00.32.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 00:32:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LTJvRAmZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-90205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CBEBBB22438 for ; Mon, 4 Mar 2024 08:30:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E09617BB6; Mon, 4 Mar 2024 08:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LTJvRAmZ" Received: from mail-oo1-f68.google.com (mail-oo1-f68.google.com [209.85.161.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F88418657; Mon, 4 Mar 2024 08:30:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.68 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709541031; cv=none; b=irLI16wca7JDbmE4FCHyWB6dU+ikssh/S1yfBB31aNvo+MVOKQoZenUUtlFCakeAHI+chh7nJnnnIYC8vPhcFfpclBr0uJZESE0diMwk+JdF7J3BCixU4VNP7l6dmf9s9pMjyQWRDMsSA/yS5gmhSwhyeJ8vcqtsJV33wVKfLAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709541031; c=relaxed/simple; bh=COjzYZytZzogQjpL44Dma0WCaVOUhQ30atrZWud4MLo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gICVnLC05gsSNyQSzpiNzN+ZIHVogz1TEOrTiehXykUNQylReOw5CtlNQrfQtBXoah+KulhhfhVJlRJu7hsLRK7qI3yC9kpBke3Rxj3aKIbixuelkutoi2sLodfQ+hWQzakQUKeFPET729Ej8btljlkItQuJ4F+iH4QyxG7IZ0g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LTJvRAmZ; arc=none smtp.client-ip=209.85.161.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f68.google.com with SMTP id 006d021491bc7-59fb0b5b47eso1870030eaf.3; Mon, 04 Mar 2024 00:30:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709541029; x=1710145829; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=COjzYZytZzogQjpL44Dma0WCaVOUhQ30atrZWud4MLo=; b=LTJvRAmZxZUT7OL5XELSP4PQbjZvp16DsfC/b/ibD+v3IhIFfuOOU8ZhKCeNyTDJkI eII1Rn0hKiKKuQF2xWQ0w/mgV87hpz+PmkGlQhnvQ2acW4sA9lKlU6atNy/5Xz3NqG6w u9C7Lvzsv/IQxpEiWqxpg20nDFG/NkFxe2mNpIHQdiB+vn0GHWinO5GLYQxXsSmg7V3M G5we6sITw2kXnk3pij6MatuV2wXAbTHFlV7BzrTCbCuyRyyBhRN8S3JTc7WQv6S8feli MG5Tcprlp/jg1OdganaPA70JEW9OyuME9zzArrGV+S0b+r6a1Ctojlx66pZ2Sel5wbgl gO7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709541029; x=1710145829; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=COjzYZytZzogQjpL44Dma0WCaVOUhQ30atrZWud4MLo=; b=ptUFnJHZoniW0s7092duUN7xP1FM/z6ZsIHJofSSZz2pJX2rk6ai0AD0uswcF3Yvgc 5UvsWqABDYS01eWuWr5+ASinjaj/P5tzxIiOIzspd95VTnlIV+O3cz+9ezWR216FV7xn dZr6o6TINqx4Tf4uMczQurxHBdimTy1uQGjccIeATNu/MuvdpUGgBN1vOeqbdPKvmhxu g8ySPH3W8WBanfUu1l2ssEriD2bjqtCikenAuVQEd39tIzs7wjsweIPy4LEzRkB16bPA 7Ay4ehks0RYuZcktanqvGoAlcFpy3Da/tMOaBq7Bq6e7eljtOJTtJ8M21N+rfHoPkSdM xE/Q== X-Forwarded-Encrypted: i=1; AJvYcCUgfT9c2Os7ls1MjQ4K4Ij/LumwuWhuc3Ll8HYreOatnb0pYI6h7lzRKiEELXKaJh3Ux3WdUfg5re4BC+UnA4ABTfK3Ws9Gr8W9Yko1FMEbV0jEr25uJKOkW+LkUrNf/R4HYw8xUz2OHqFgUqZ+KM39UE/c+9Zyjl8YKGKOwV9wTp9lX3E4tlsy X-Gm-Message-State: AOJu0Yx7a+b4GEka3QmPeeZMiFH2BBWRWzWEVSv2jMGX8SK/Qozp8fDK u7/ODhFGF0APLVWb9mENrzlnpWX+l5/pY9m/bzwie3+QUMbj8brwRpLImZWR2aNjnhuwE0uMHmW fBQe4X+RmuNbd8tPFQx71gFrqSg== X-Received: by 2002:a05:6358:78b:b0:17c:9a3:7813 with SMTP id n11-20020a056358078b00b0017c09a37813mr7634600rwj.27.1709541029382; Mon, 04 Mar 2024 00:30:29 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240304034632.GA21357@didi-ThinkCentre-M920t-N000> In-Reply-To: From: yuanli fu Date: Mon, 4 Mar 2024 16:30:16 +0800 Message-ID: Subject: Re: [PATCH net-next v2] tcp: Add skb addr and sock addr to arguments of tracepoint tcp_probe. To: Eric Dumazet Cc: rostedt@goodmis.org, mhiramat@kernel.org, mathieu.desnoyers@efficios.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, fuyuanli@didiglobal.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Eric Dumazet =E4=BA=8E2024=E5=B9=B43=E6=9C=884=E6=97= =A5=E5=91=A8=E4=B8=80 16:13=E5=86=99=E9=81=93=EF=BC=9A > > On Mon, Mar 4, 2024 at 4:46=E2=80=AFAM fuyuanli = 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 i= s > > 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 sk= b > > addr and sock addr are available, which is more efficient. > > Okay, but please fix the typo. Correct function name is tcp_rcv_establish= ed > > > > > Signed-off-by: fuyuanli > > Link: https://lore.kernel.org/netdev/20240229052813.GA23899@didi-ThinkC= entre-M920t-N000/ > > > OK, I will submit a v3 patch, thanks for your review :) fuyuanli