Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2432835rwi; Sat, 15 Oct 2022 14:01:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM513cR5bGO7jqOh9x6ZSbjru/9Cko0fHqUWT6RloSe+UGE7Q2dMZR3oy4/newxTYajr8pt6 X-Received: by 2002:a17:90a:8044:b0:20a:6412:3b8c with SMTP id e4-20020a17090a804400b0020a64123b8cmr5109329pjw.139.1665867681680; Sat, 15 Oct 2022 14:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665867681; cv=none; d=google.com; s=arc-20160816; b=B9GCdRstCZ2hAnS1xbhQ/WkCF7zNNkzkdy96tsSUtUqHRwlqG/wqF7PAWiBuB1jFZX x3wO/xiwRE6N7Yfvz7rx4vHc9mlfa/TPkz0CCM7VHYN/dTEHwB7maF//bJzf4hmkoh80 0/9Gi3x4qQrr4ABepQZCbs2ThmvusIF7WA5Yqh8NibyGiFLS6vJvO0yKrYCLQNyXFeET nJxFAEWDps4CF6MQ2wOrGN2LrawFCMMtYNo8VDE6+phmP2CWCZ2NEYGLipwHBBv6Bdix TLBbkqIKASh0hepA7j4U05arc+KovPfazObszxNagD5QzF1TIyx07xY4pBpEmavaWnMO 6KmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mS8XGtqd3i/pk7URDEoiQ34L/lpb4BogfvC0QODXjc4=; b=i5NBw9P2ZZ8Uo0mpU64uZ/++j7XxxtYVbc5k4PhYspMjBQ+6H5aGGD3bVkpWTEQ6Dq rGsz8gCI0o/eXptMwuMvz+VvVyX0IWAg0ym/hVXLjlvCFRAExHb9PGjMKIOZ9iNkvjxN fb5yC5Bz83+/46Y1fVkcKs/rebEKLaNZb2kPVWX520huybRWlYltUkg3i/3i1HkxqLRE 88uUsPsRWYYgDic1co2ujxhcvajV1JVCvkMLrp/6SsDhIqbSG6O4GQnz5fe+yjA5Z7IF pUobTqz3MQSjLTSD6Dd+QNPrt1bihlV7VUO/fpRf7E14gzxoXAYPJ/vGRux69ezPVOnn dy+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=dwdL4K9p; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020a1709026b4300b00176c891c8a0si6529547plt.6.2022.10.15.14.00.48; Sat, 15 Oct 2022 14:01:21 -0700 (PDT) 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=@google.com header.s=20210112 header.b=dwdL4K9p; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229579AbiJOU1E (ORCPT + 99 others); Sat, 15 Oct 2022 16:27:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiJOU1B (ORCPT ); Sat, 15 Oct 2022 16:27:01 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 257E74317E for ; Sat, 15 Oct 2022 13:27:00 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id 203so9250537ybc.10 for ; Sat, 15 Oct 2022 13:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=mS8XGtqd3i/pk7URDEoiQ34L/lpb4BogfvC0QODXjc4=; b=dwdL4K9pRB9tgFet7f7vkNfdIBpt8C0Lj7H1w9Q6g+d+D9kAO8YuHXByo7dCdPWkj/ dWJKhJxi3mYnrcFxahkQTvX/H0r+TSU9o3T4KEtXiKKN4G64iBbWLxwQaQ2QYymqOoTf n9g1m56tAU42EkcyTM/vnC7AWgWiQ3Ce73ewbrVQvhleAS6JgOvbOERa3WQESZ7lxC53 4kfqLgLa9RCvw2XaBq6SJj+QAyLBilMVDhz1cUAcDH7HW7Yrwhj/URm15dI0UG17aBtW nRu+OiFlOu1MWc7QTc76Yk63GwD42QQHOX87u5+9/nl8Jfdlvydske96dNSDrpidJV0Y b9xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=mS8XGtqd3i/pk7URDEoiQ34L/lpb4BogfvC0QODXjc4=; b=FYLRzzGAaXQ9UxIonP0cymM75gvtQmhm6pOQT9xwADXeitQQYT17Bq8gTsmcxhspnO 2pkGVKynQ092DoVbU//Dpy72bjwBWZs3JeTwFea8TrhPhOqjOHspQ5ZMOnkwL3pVe+/A NKlZgIodfORvqDiEvSb5EZLTsyihqjcdjVEKXi5YmgnjzFnhEOMJc+JOaovKIE8HvAyR g0B74ZtTZ+/VQVam5oo9p/QeYtGRlPes/Z/WGEW+tNIIh+9LlCHuUiRzEe9rzNTSE4sA oT98x985wfW9R9A5WyMK4PVV51Ow5ijtXwvg29xKlYN//spBB28meANQnhu6i+MOrC/F 7u1g== X-Gm-Message-State: ACrzQf15BB06ogSC4XhZZA0Adjk0M1T698+mcusHJmD9AT+kaSJ/cSIx e3IzhfS5Wx14TsgFs3TIixwfoIBuNOqLwtv1nyIG/g== X-Received: by 2002:a25:84c9:0:b0:6bd:5074:bc30 with SMTP id x9-20020a2584c9000000b006bd5074bc30mr3377208ybm.55.1665865619165; Sat, 15 Oct 2022 13:26:59 -0700 (PDT) MIME-Version: 1.0 References: <20220928221514.27350-1-yepeilin.cs@gmail.com> <634b1304.c80a0220.cedc6.e007@mx.google.com> In-Reply-To: <634b1304.c80a0220.cedc6.e007@mx.google.com> From: Eric Dumazet Date: Sat, 15 Oct 2022 13:26:48 -0700 Message-ID: Subject: Re: [PATCH net-next] net/sock: Introduce trace_sk_data_ready() To: Cong Wang Cc: cong.wang@bytedance.com, davem@davemloft.net, dsahern@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, peilin.ye@bytedance.com, yepeilin.cs@gmail.com, yoshfuji@linux-ipv6.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Sat, Oct 15, 2022 at 1:07 PM Cong Wang wrote: > > On Thu, Sep 29, 2022 at 09:19:34AM -0700, Eric Dumazet wrote: > > Second patch adding the tracing point once in the helper ? > > > > Alternatively, why not add the tracepoint directly in the called > > functions (we have few of them), > > instead of all call points ? > > Why do we want to give implementations of sk_data_ready() freedom > to not to call this trace_sk_data_ready()? > > Thanks. I proposed an alternative. Choose one, but not the one you do not like :/ The first proposition was to split the patch in a more logical way. I think we have less sk_data_ready() functions than call sites, so code size would be smaller, but this is probably something we care about enough.