Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5787907pxv; Wed, 28 Jul 2021 21:06:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc7lMnW9gDDHBpCmEuBSjoI19HrqY+5/tOJrVCx89SS1MySuh83zLgueRHzRzGcJMatkzn X-Received: by 2002:a17:906:e241:: with SMTP id gq1mr2835267ejb.87.1627531614664; Wed, 28 Jul 2021 21:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627531614; cv=none; d=google.com; s=arc-20160816; b=Dw6IYyuUNhKfqosawKt7G1uc4o31adRtGWYmppgcPGPo1sZCrsYUFnSUyyF8Nfdwhv 2fh364z8KDaV8gb6TER28wlFwn8YNffFagK4ylbxPhhhsBJUXPOLS0jBJjNcsHYDTNAm dnzkGmJOmxbaRKC+phQ9mN4wCyIxNCsLw+/ob/8oFseAkcbTzLYqBorI7+tDrINIgWlW jmhMdhwnk8JjL/Kei4k3ZUyvY5uoz6zkl/k99divjKi8sN97YayCK1wd2vMxOQ3ZBmw/ NNqdfkq9zxfoddgEpmWgbmVLDuCfj8ueQzaDndFEvOIb6PYkpSoEx5Qdkyu8Kfz+yQCc RVYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zOQUXCY8upz7j5p3YnQfMZdqCcmOGYSEKm0enRmbRLA=; b=SII9cm/WYbIrYgYtp1U9QbDHX/KLz9SMFsDtUVTs7feHVySWcEQMiLBxwwoDJVB7PT uWWQ0xwWhgWTb4EPZSPLtRIVHlruH8TM3c1qunBlCjUThWlohCIOMu7TmCiUAjdCTkLS 1gbQEfcSCTVcWIZMq/gZdu+nChiBrQ66qBrDyXV47DqdjERnUiXgHViBBzugV9qXUQRk 63iJVWfmF7XQAhHsB42kCnlFR5d/CiLBDCCuj2dfGVKlUpw48dU+TKcwyhr7QcR0h6vR excVTcEcoVzxLt/M3kJwL5aGhVMCx7oPqAwQnovEEYhKaEGZqPqTmtlY3d0cTqYy8GZR rVIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hy15si1957310ejc.28.2021.07.28.21.06.31; Wed, 28 Jul 2021 21:06:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233689AbhG2EDN (ORCPT + 99 others); Thu, 29 Jul 2021 00:03:13 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:51554 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbhG2EDM (ORCPT ); Thu, 29 Jul 2021 00:03:12 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1m8xGD-0003hT-9R; Thu, 29 Jul 2021 12:03:05 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1m8xGB-0001pU-SN; Thu, 29 Jul 2021 12:03:03 +0800 Date: Thu, 29 Jul 2021 12:03:03 +0800 From: Herbert Xu To: yajun.deng@linux.dev Cc: davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] Revert "net: Get rid of consume_skb when tracing is off" Message-ID: <20210729040303.GA7009@gondor.apana.org.au> References: <20210728125248.GC2598@gondor.apana.org.au> <20210728035605.24510-1-yajun.deng@linux.dev> <177cd530dcb2c9f4d09a2b23fdbbc71a@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <177cd530dcb2c9f4d09a2b23fdbbc71a@linux.dev> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 29, 2021 at 04:01:28AM +0000, yajun.deng@linux.dev wrote: > > if we don't define CONFIG_TRACEPOINTS, consume_skb() wolud called kfree_skb(), there have > trace_kfree_skb() in kfree_skb(), the trace_kfree_skb() is also a trace function. So we > can trace consume_skb() even if we don't define CONFIG_TRACEPOINTS. > This patch "net: Get rid of consume_skb when tracing is off" does not seem to be effective. The point of my patch was to get rid of consume_skb because its only purpose is to provide extra information for tracing. If you're not tracing then you don't need that extra information (and overhead). Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt