Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4126982rwi; Wed, 12 Oct 2022 11:00:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6dK2fHoOXYZZBKxG0v+I9hxaSevoBF+bDnFZnTCuKoVVeKxDAwDgqi4aqrCZ1ss1/BQtTn X-Received: by 2002:a17:906:4a09:b0:78d:b6bb:ff5f with SMTP id w9-20020a1709064a0900b0078db6bbff5fmr13119904eju.538.1665597602037; Wed, 12 Oct 2022 11:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665597602; cv=none; d=google.com; s=arc-20160816; b=SzcEsgbN7g1+sGWZLWIx43PTZhkXp36FRLNjD7earSLZF4F/QU08M4sZ7mlcGpaeF7 k/YTk038IC6DIPbOV5aUmyFZekVFvGSZprN7UuxcW6rE38Dhr9CJ5JPTGBzKpTsV8SR0 sUVvz5pHqhnR2E4aLWzgYhTbe82jIyhpDCLsWAWAP0Y0zbmg+qfMn79WMj7Q5GIcULkG oqhr99Lf9kSYVLC6AX9LlydpVBMCAWV3jhvA3Rej27io4HjcrblEmHevqtoG36yGBOwq EAs+bK4LBwLGzWM44fOH/5qsGcO4Wm1vYmeyHGsWiry8EoYGZenvDwyoJ/lV51lXa3fa NR2w== 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=AdY2upGu3PKFhlNCranhBSH0eiafPTkseasEdjQaa3I=; b=Rff51EcWFdHe33inppUz0UliLvQUnaJoOvfFHCeMG2djO8ufYommjz0BSIXBX0WBnw v5H7hOWEuH1BaIaws8DFldG2gAj5n6jucrHJ9xRRUvqJEWNhfi6OvHb/hrasL1qhVbEc g+johTynogS5zHDO5/PQoxtCEp1byeLu8+MAKeU3kPxxy6CRgfH7muZYQ4qlZe9BjURT yLT7r7JMHNZRKIidkysZMtSF09PYVmsuPv7MRAVYZfsbydmSj84/3dv9iyGh4knhpbGw uPct8M4+2E2VC8G4xz+TRT6v1WX+zvpN9pdrC5Hf2fgWta/+6Uc3s4fD+b+bVtUjWKX2 rCHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=L6te7nMB; 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 i17-20020a1709064fd100b007707b853e46si19495998ejw.882.2022.10.12.10.59.36; Wed, 12 Oct 2022 11:00:02 -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=@gmail.com header.s=20210112 header.b=L6te7nMB; 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 S229662AbiJLR51 (ORCPT + 99 others); Wed, 12 Oct 2022 13:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbiJLR5W (ORCPT ); Wed, 12 Oct 2022 13:57:22 -0400 Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75F0ACE9AD; Wed, 12 Oct 2022 10:57:21 -0700 (PDT) Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-1364357a691so13807600fac.7; Wed, 12 Oct 2022 10:57:21 -0700 (PDT) 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=AdY2upGu3PKFhlNCranhBSH0eiafPTkseasEdjQaa3I=; b=L6te7nMBxbCmWHFIiy+cBYPK4VNOG0fe05bq+QjCKa9NbVIsJtlM8i0HdNFgGACCJg YOTpdQJlX9bz4/vlP90+SxUSkTYBvnTtPpcEIqdiz4GkypA632KEo7vC1b8kAL4NLBer aBE57rcxwwE/CXwJrA5fhbdcC79ADH4thIQaIFJnlI4CeQi7vSSOl2DjmnN05Z5zieGM rVkzx8EaxZ+kJRUMoE8ire5IIoLBeTAs1GFq8hNPrKXgnp4J08IW/rdUJhjqHhoAEUxn o8jSBm09apszXisgGfDfqF7RxcrhBygJwQMM9vyO/u8lksC+KIuD9ssy1npMRE7t0AaY BoKA== 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=AdY2upGu3PKFhlNCranhBSH0eiafPTkseasEdjQaa3I=; b=uu3/eycCQttXPjT/ABbjjrCekAo4bZ+17yXPMs4quoll4+BAPTtcSyal1/KhHQgVG+ pTZuHcejh/lRPF4xjgYP90emoLFFNYiNqMlDRwrRw/Tc93uNDqxmMCY9+zcUziympA+H mtU+8AW2mepaTMgt8ZfR4mWUTLjyanUE2Wy5qS5r+fjXgcbMMDRKJXUVtk2AjVhtwseG cJwA4i9CaaaPVDJ5LF+egWUcUW9VYuX42bm1vKyPW4ygLRRV7AfYKHa21EdBHeTgW3rM 2sB9TRmzUuPd4c+UX8mpPCP4XabDmZgcLwCHs6aRyfKJHgz8ig4S9kIb9uwLAsaftUKl eTVA== X-Gm-Message-State: ACrzQf1eiBZXuJxAb0vu2ay5GcMepJIxLN/x/exKxSwxm8U6wR5PSzCt QVcsiMnEHI7ybGdkyWsOPQ== X-Received: by 2002:a05:6870:d187:b0:136:4db6:2980 with SMTP id a7-20020a056870d18700b001364db62980mr3252715oac.230.1665597440426; Wed, 12 Oct 2022 10:57:20 -0700 (PDT) Received: from bytedance ([74.199.177.246]) by smtp.gmail.com with ESMTPSA id p7-20020a9d6947000000b0065bf42c967fsm7554426oto.19.2022.10.12.10.57.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 10:57:19 -0700 (PDT) Date: Wed, 12 Oct 2022 10:57:17 -0700 From: Peilin Ye To: Leon Romanovsky Cc: Eric Dumazet , "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Paolo Abeni , Peilin Ye , Cong Wang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v3] net/sock: Introduce trace_sk_data_ready() Message-ID: <20221012175717.GA26425@bytedance> References: <20221007221038.2345-1-yepeilin.cs@gmail.com> <20221011195856.13691-1-yepeilin.cs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Oct 12, 2022 at 08:58:32AM +0300, Leon Romanovsky wrote: > > + trace_sk_data_ready(sk, __func__); > > pr_debug("Entering iscsi_target_sk_data_ready: conn: %p\n", conn); > > This can go. <...> > __func__ repetitive pattern hints that it is not best API interface. > > > > +TRACE_EVENT(sk_data_ready, > > + > > + TP_PROTO(const struct sock *sk, const char *func), > > + > > + TP_ARGS(sk, func), > > + > > + TP_STRUCT__entry( > > + __field(const void *, skaddr) > > + __field(__u16, family) > > + __field(__u16, protocol) > > + __string(func, func) > > TRACE_EVENT() is macro defined in .h file, you can safely put __func__ > instead. Thanks for the suggestions! I will update in v4. Peilin Ye