Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9856014rwl; Sun, 1 Jan 2023 11:41:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXuufFM9LEFLfcOiuma/VNZbL3RjgFsbemeHjTwmuVDowEqeFtkOLvsB6rhWQikwPBRyAUgV X-Received: by 2002:a05:6402:1298:b0:46c:a43d:5e23 with SMTP id w24-20020a056402129800b0046ca43d5e23mr35098770edv.28.1672602065161; Sun, 01 Jan 2023 11:41:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672602065; cv=none; d=google.com; s=arc-20160816; b=wpfJLNNaGgMnApmRFtl/uIYi2TBZLqJB6PN8MV08dj9j6JvTdUTCKLDao3cmY+H4pn OMiOp0RGLvMM1z6j1csI2e1d/qq3ZQ4OKGQURTlG2QZk3IX3xxHxe2tIz3guS6JvaS9I yURFBqCldHT0pWVc7eDOuw/RjZlUplGdrYG4sjh2e+EtDNWK3Q4OlZFARx/gwvFaTT6U 2GQALdVUUC/jAJ7eC5Oxi3osmD1DGGG51PfCHz0wTBr3BptGdZE+rtpBwHOq3h5P6fWS ueRDvImjGSHIYE5XlMdc1ksuiTKbQN2KkhyGXBv4JWAY8K+oWghpLLefe1Ok9hIGjCX8 E/aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Nh1q6xtrBgKc1fDe5/d8D5jFIgt5LSbfJ1iE1tY4NY0=; b=wIgFDd5YMfeuhm7nZFW2QjGpt17ISQdCq6GlBTA87tIoVtaooS2eKlDjuIdfliphPP hXxnQFddrwhe4XxwBsGi9ky2GHQHaz8K+0C0pIXn6N4wAFuOr3FTDzYDv0zeEIKsBRz3 oKwEKhF6sX5eq1Qd3g1/BYkEb8NhuVHroGYKxXnhX5O4u1qUtMOqks0ohuuyzD+cIc1C WUROVNCX267AHsr+9cc7ayPzcapkAftiT+z/OJeAigODRJK6ZbgUt5lh5bPbNpIcJG/M JUQOdeEGzJ3Y0SA5frYPY0deVUOHzOvqQFqxQbIRkEdGz49H6l6sr2ds8mzIDr6gu5bk +oqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UwnH9hRC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a056402281000b0047920cdf1ccsi27371507ede.73.2023.01.01.11.40.43; Sun, 01 Jan 2023 11:41:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UwnH9hRC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbjAATJw (ORCPT + 61 others); Sun, 1 Jan 2023 14:09:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjAATJu (ORCPT ); Sun, 1 Jan 2023 14:09:50 -0500 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E64A3D9E; Sun, 1 Jan 2023 11:09:47 -0800 (PST) Received: by mail-qv1-xf29.google.com with SMTP id qb7so3606499qvb.5; Sun, 01 Jan 2023 11:09:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Nh1q6xtrBgKc1fDe5/d8D5jFIgt5LSbfJ1iE1tY4NY0=; b=UwnH9hRCSaQXMD1ekBRj4n3jdugn6p5ha+kj9QMceWZP0PAzvDMSmcio2VlXTquVF/ 6BRBS7KRqzFq4u1ymXaetY42vnR/h/VUewl41NzcwBzQXsc7CpxR47vXsClj5Fm4wAkh T3awI2+sJTn6bFCvwm0K+GDxNW2l2VmI+Ea5W9ASfOVEwW7XpPMyIxyLGnEJnf7ONsF4 YMV9b1otZKL/jxE9pnEEFRge+Uh3wwh4ZyXXqKBE8+LtlP0uU+iHMu0HrhSl06mS5ekt w+jfvwtfh6VGcX4EGVkaVBTtwnW3bgYOYlVy5Y8hxCwRZ0FIx2g75vOqkZdE3A+YL7kf iTrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Nh1q6xtrBgKc1fDe5/d8D5jFIgt5LSbfJ1iE1tY4NY0=; b=FfszfJVKGHDvEsFDGxHdY9x70C6lWugbxyAOoQ1rmnGwUPqrpXMLYIr79IbRrNrWxC 5g+GDkT40pxB26yMXNOSleCXHFLbQLsOu2P7jeJStb8JtbuEsyAqE0BRXdOxgfZDoia7 lY5glvMm/lA/w1y7vtYyWotfQBNfzaIwd3WYFHyJ6+QpxvSDiljvb9jJEQE1t/aGFfJs aiGCP02T9gcp90hHZ3kBUm5hBWtAvH7PdIP1upI2SvskSdkrNiWieiZcIsW4z+GgyouW /DEA7rh7fGXs6oue60bfbHhd7K554f6b4eC9y7TsSlir0/pXd6DDjzdCfLqIv2fue/9X dQHg== X-Gm-Message-State: AFqh2kpB+a+TYtdqB1eIwkwy+cOtfv1AKJn9B6QwP7W7f5VPSGa5eT8q XgtUp2+pr8lLx+qda5q7l3U= X-Received: by 2002:a05:6214:3713:b0:531:bb5a:3418 with SMTP id np19-20020a056214371300b00531bb5a3418mr9262906qvb.13.1672600187088; Sun, 01 Jan 2023 11:09:47 -0800 (PST) Received: from localhost ([2600:1700:65a0:ab60:bccc:52d4:da14:f94d]) by smtp.gmail.com with ESMTPSA id p18-20020ac87412000000b003a4c3c4d2d4sm16459391qtq.49.2023.01.01.11.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Jan 2023 11:09:46 -0800 (PST) Date: Sun, 1 Jan 2023 11:09:45 -0800 From: Cong Wang To: Yunhui Cui Cc: edumazet@google.com, rostedt@goodmis.org, mhiramat@kernel.org, davem@davemloft.net, yoshfuji@linux-ipv6.org, dsahern@kernel.org, kuba@kernel.org, pabeni@redhat.com, duanxiongchun@bytedance.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH] tcp/udp: add tracepoint for send recv length Message-ID: References: <20221229080207.1029-1-cuiyunhui@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221229080207.1029-1-cuiyunhui@bytedance.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 29, 2022 at 04:02:07PM +0800, Yunhui Cui wrote: > From: Xiongchun Duan > > Add a tracepoint for capturing TCP segments with > a send or receive length. This makes it easy to obtain > the packet sending and receiving information of each process > in the user mode, such as the netatop tool. You can obtain the same information with kretprobe: https://www.gcardone.net/2020-07-31-per-process-bandwidth-monitoring-on-Linux-with-bpftrace/ Thanks.