Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1694676lqg; Mon, 4 Mar 2024 00:13:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX2IFr5PRDqfvrH02mp9ij9FT21LYKzXL4ualbsVprno2r+DiJ20qzm8MYs/J8JN1u8/T95jYVo1g81WGtCvuRMPwIb3o6YcGRZ1xYzsA== X-Google-Smtp-Source: AGHT+IEfAS/wR+8mhLWIQMwavziFX/NF4XtHatqLDAeH/D4gqPoOFQ0rqLUvnIpKSOo4+Z6ggC3V X-Received: by 2002:a9d:61c8:0:b0:6e4:875e:316c with SMTP id h8-20020a9d61c8000000b006e4875e316cmr9133708otk.10.1709540038491; Mon, 04 Mar 2024 00:13:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709540038; cv=pass; d=google.com; s=arc-20160816; b=csLHH/c6n3CsySt+Xye53mp0QO1CEGPARwvsqVBmFLtKOZV8OlA1DVPKXq6suf6Nzx pF4S0AURoXuMB7C7fQ8tFST0g7vhSbYFItHgqTUvNJpiK/ZFA+quBZ1EfgdmasfACB8u Me8CwawCx6ImK/Sia9M2/PjHSni/YanrRbsGI5nnZ85+XoiR6rSVWqSidQeiSd92Wlzl R9hMJ/OtjPxqOiWDmRg8GrguRSkfdNQm6B8M4nBp9suALpci2UC8NpfyQI2S/exOwYb7 JfAUq4umeFF3OWdeEpz5JsiNWZQAZuKZW3fy8RmOYPEpXYYMMycuNsVvkI0bd8ebMzdu iUDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=4t0p8fRfEFH8AtnVja0S+UMsbXd66Z0IS78pE3ll0oY=; fh=qvMUXYfj6h3phc3+tuSmn/SBr9j6Ew3vpVPI9yarO8s=; b=xNzwQo4vP/F2QiRmNl2yUzeMWmsrsYEY5EWVY7Pp0E2wM0+2lvyC2f4FHnreeKK++r SDCyhEpTewnXlQETCGgQoKGDH2eJVJ96R82M+xDRNrWBvjZQp+Qxaky97Q2U0Z8WLwBD EsE7e40LEjOA//AqWQALYj/mZ/vI93myZICig/MDO76IGOI9wGy+xTzIjiJYoXxpJUxj rU5BnXB7DJcLNaUCtIfuEX+I5q1XFuhxIpIfe3fDJUsfiyfOwOOCzojFGh1xh8lK44T0 FWLey4pgYVBz13OBJjZmNzszEYCMjYusTPTlQBf2MfJBGqVsKMBZPVbY+Z8S/kPf/hZn TacQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=w0qt9aiB; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-90172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90172-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d26-20020a631d1a000000b005dc883a6ba5si7822144pgd.500.2024.03.04.00.13.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 00:13:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=w0qt9aiB; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-90172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90172-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 4011BB21988 for ; Mon, 4 Mar 2024 08:13:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1EE2171CD; Mon, 4 Mar 2024 08:13:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="w0qt9aiB" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 49917171B0 for ; Mon, 4 Mar 2024 08:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709540002; cv=none; b=lKK/dWGKRh6XK6CNA7FJoV+t3iuXYkpT05BKGq21DUBLpKGWgAvkSI8N1OYB33gFKWx35rY++EV8zLBYYPfQXl18OiQiWFEfe1ZMH7WC2p1gd7AuT9eGgETCH7ijqoMkIoiZIyQSRHC8zahFto7bYFoTX7kPNX6zlq7rXzq2Oqw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709540002; c=relaxed/simple; bh=4t0p8fRfEFH8AtnVja0S+UMsbXd66Z0IS78pE3ll0oY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Content-Type; b=mCir5jZ0VXuH34SgN5CmrQ5ftXQWLl2+Qop65FKK3O/7NZ+kBNDYKXk/pXKgX2KmPF9lgcmIaH1czBoZEGnektGxMtyFWE4FXhcAARyFXcEU3N3y2qsqkbYfHmmdbLaTktSC7RvfJcRDrPgmvfXfGlobDdFV5p1Yt3bmsGveCIc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=w0qt9aiB; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-566b160f6eeso21722a12.1 for ; Mon, 04 Mar 2024 00:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709539999; x=1710144799; darn=vger.kernel.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4t0p8fRfEFH8AtnVja0S+UMsbXd66Z0IS78pE3ll0oY=; b=w0qt9aiBR9tUq81QkwVtLbFS/NfedDF3dFMR9g4YqLjU7+x/C1u0My3Pxn9fUUTrTA 9UyIeDmzDv31u/jKiv1TTDSAgvG8N4jYr08xtPMsZdq2BL3ob6g+cCJ7ijNaH4CtCnSC eyeZ7Jh3jlburXwO146WARBnRmL7bEhp/Ul4rXZd9kNSPiEYk+NCkFqO1OWQ9NAVFtmj 1XHV05ybPq5ik69tndpGm8jPpX5XZlGDjDljK6Vrj9LNrj8v/YELOu2bz/VVU5utPJn6 0lwKmefMnPrh7qhNJ0p5Ro/etJb0favMsd/LyYawi7jReO8BJxyF6VGSi72n+TNwkhX8 JYEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709539999; x=1710144799; h=content-transfer-encoding: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=4t0p8fRfEFH8AtnVja0S+UMsbXd66Z0IS78pE3ll0oY=; b=rz3cdsaTIFcJPao78vzQfRngkNQydFJeJjIM7FCjHS+TR0L+NbqF0tLhli3E9FP78r pV+4xFdlMLKsZBV3f7k8qF9Y0QyZkZCNUu1Ue3bxZnHrUIrfxC8RJLndku1yw2j+v2RM I1eRLW4BDoALzwq4RKY4QguQjyaxnT5FzYw5BdVv/YWnBb6F2yj4ROTuzuI7mypINSip VUYMBnvhnpJHV8PI0XXQh5HvLZ1I8BwbW9nx45iNwWVB1JlvOTgeJCxWygm80WpV+IHh XnWCplfPsiuE/ZaxrIV769p1EyB43qRoPrMOuZG+HYBPN6L/T0aIzbBnyYpvWk9wiymi cK3w== X-Forwarded-Encrypted: i=1; AJvYcCUyUPeteuZQBRgy7a5MMLMHF8qEsVLmWg3Df0dihCBX0fd5YKLkmZAyjWYc0uZg3Mahc3DiI+Pni2T/biZ0QghjuswJKLj2vxpw1rw6 X-Gm-Message-State: AOJu0YwiSn3+fQ5xNpU28fne0vONeuCgwSHBl1wpGsev8XivAQRZ3TTR EI2GfxnAmPk5bYxAK8BqR7mhF6QpWdu4N0OhnyD4Xhlys69dl30MzvVEHJ0zgmsJHYm+iXgCQJJ 3FIthGrs5q+fd96RBvAdFz875V3g4bvJTRK3J X-Received: by 2002:a50:cb8c:0:b0:566:306:22b7 with SMTP id k12-20020a50cb8c000000b00566030622b7mr287915edi.1.1709539999391; Mon, 04 Mar 2024 00:13:19 -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: <20240304034632.GA21357@didi-ThinkCentre-M920t-N000> From: Eric Dumazet Date: Mon, 4 Mar 2024 09:13:06 +0100 Message-ID: Subject: Re: [PATCH net-next v2] tcp: Add skb addr and sock addr to arguments of tracepoint tcp_probe. To: edumazet@google.com, 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 On Mon, Mar 4, 2024 at 4:46=E2=80=AFAM fuyuanli w= rote: > > 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 > Link: https://lore.kernel.org/netdev/20240229052813.GA23899@didi-ThinkCen= tre-M920t-N000/ >