Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8946350rwl; Tue, 10 Jan 2023 22:34:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXv+8Wpw4CKSOvubmaUvipUVXGtypZuGzibjOQa/zZocIZ5zruhmBAfHD6RQIT9qMhzPbpAf X-Received: by 2002:a17:902:d647:b0:191:13f2:173a with SMTP id y7-20020a170902d64700b0019113f2173amr67173085plh.36.1673418861731; Tue, 10 Jan 2023 22:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673418861; cv=none; d=google.com; s=arc-20160816; b=vOTsjvSLFaKKqyMwIJqh1wMwzR4hSHSbaGbTeFeLQ8NxaY5+x0gk6p8NCUXRbrQPi/ mFkjzaKMMn6KMOmUelMy+KxFqlSbtkDBNiaUrfRiXUSiOioxiIA5Ff7WZ3G12/kolXWm Pwab0Y43elTbGKPhL+XASisDoJKF5wHOIyrX7qkbiFlSjjMLdCffZNQ2YnlOfU/FGcAm qBaAAmK22PXkfhUQmDgCcox2psI8/9+r4JWoUoh4chKCmVw1A7lM8zmY/cvEu5mBxzRm JExQT5UjQ9I4Zu3iEc9L+hFFJUUwR0W+SW1li5idZzg5nZGFqt6f9HMA+6Xk8Ila071s 2ITQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0RrLy7xqWg1RnasudUvZBWKEA1yRY0PzlYprkCqFjws=; b=uqtPgga3Mwc1DbgTWDAKsQzhf/uNg+1Bd8FsnM2VxyR5mhLMyGKbg024bOzjxZW7pq wDZDk47wsKmH4cCpN4G1D0VEOm53IJhApIVB94cBCity8Yg+5KM2/RNfLOoSLCmiZWJG 7lKGbjI1wJuB/H8B7jalkTSuhlfMVylg7WmiFm5qyoONTUAfHGdxvwHy7Yn4mgt4i9Cd s/VqVuQMX7qFv6hbzRJoVIc9SuTDleefyrSitar5aNjqV0bhpVjHIBAAN/rjHZqDq8yB BIO7cCg7AVqDP//CJTkxbOkNU09VI0HOPETo8PNAs7+Xd2e7+NkGT5UmOMMHrGCd4AXG 8xmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=GyeBjW22; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a170902d15200b00189655d7144si9895807plt.161.2023.01.10.22.34.14; Tue, 10 Jan 2023 22:34:21 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=GyeBjW22; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbjAKGRr (ORCPT + 55 others); Wed, 11 Jan 2023 01:17:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230313AbjAKGRl (ORCPT ); Wed, 11 Jan 2023 01:17:41 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91175DFBE for ; Tue, 10 Jan 2023 22:17:16 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id m26-20020a05600c3b1a00b003d9811fcaafso11811002wms.5 for ; Tue, 10 Jan 2023 22:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; 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=0RrLy7xqWg1RnasudUvZBWKEA1yRY0PzlYprkCqFjws=; b=GyeBjW22NyAmEp9Vg91TZBgMb+YTns5QP/d9s835LoybvRg1tPhifllP1C7p5zxyBb ri3iK8Sv/Ig9OLEC0QeGSguv1neXysmQAgH1d4FkVN+7GsyiU71OhbnygOD26+kw9il5 vGIz9c+QwmJ5Rwu4VBhQBCGaaMn9rPRW9PCAYTOvk5duKfguUCprUHObQn3OZuSPkQ04 mWoT5Fz9CL0RyWs5oUeSuHxFit3+MAd3fmgu1ZPig9w1C9RrNCWs2coh2K1laR+TUuwA ELQyaAzueWIzqzPn2QrI+rpOoOy2OOEaTUBTLF54lycLEi9jP9yAD3HnzRzKGjjwtHgq MkkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=0RrLy7xqWg1RnasudUvZBWKEA1yRY0PzlYprkCqFjws=; b=lQoazNc+TW5jLnwyKVVczMcb8YRAqBVxDOYiLqNWjg7rGz0DbvDyb3f/qwohEnGiHT KBDPJlMyX53bY2aIud8YanhB6gSpoCQ9BBvnff75okHjlfCRqKFDZDZS9MwT0v+ENnL7 3dDhTxhCrK4bvrJro9jJgFumSBiVBMM2tMpc/nRgY6ZuGemqCQoLL1PeKk40zk17kS+o z29o/Oz1dWhMO/A+u6hhWiyCizxMIfPtoM0AtvzUaW/tISNQi5UtfwQw/CVKxZcBpAHn AppPqhZEzDTHth7Z3fzlXeiXTe6Z4jJQAQX03fGXlXDBJPlUQ1UusOB7K2RB9ptx/qtW xp5w== X-Gm-Message-State: AFqh2komWpod9ESQ2K1GMh7U6bx1AouLKdzAYZhBbfu/kidCFG1Cqtoj 8Ih/98s3LtPhkmWjV9oIzW0cMddo/FbAPIKf9wuCzA== X-Received: by 2002:a05:600c:44d4:b0:3d1:fd95:a8f6 with SMTP id f20-20020a05600c44d400b003d1fd95a8f6mr3752705wmo.189.1673417835232; Tue, 10 Jan 2023 22:17:15 -0800 (PST) MIME-Version: 1.0 References: <20230110091356.1524-1-cuiyunhui@bytedance.com> <20230110104419.67294691@gandalf.local.home> <20230110231201.5eddb889@gandalf.local.home> In-Reply-To: <20230110231201.5eddb889@gandalf.local.home> From: =?UTF-8?B?6L+Q6L6J5bSU?= Date: Wed, 11 Jan 2023 14:17:04 +0800 Message-ID: Subject: Re: [External] Re: [PATCH v5] sock: add tracepoint for send recv length To: Steven Rostedt Cc: Eric Dumazet , mhiramat@kernel.org, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, kuniyu@amazon.com, xiyou.wangcong@gmail.com, duanxiongchun@bytedance.com, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, netdev@vger.kernel.org, dust.li@linux.alibaba.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Wed, Jan 11, 2023 at 12:12 PM Steven Rostedt wrote= : > > On Wed, 11 Jan 2023 11:53:24 +0800 > =E8=BF=90=E8=BE=89=E5=B4=94 wrote: > > > Hi Steve, Based on your suggestion, can we use the following code > > instead of using DEFINE_EVENT_PRINT =EF=BC=9F > > I only suggested it because you didn't have that logic for the > sock_send_length trace event. But if you don't care about that one, then > sure, use it for both. > > -- Steve > Ok, Thank you, I'll post v6 later.