Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5790453pxv; Wed, 28 Jul 2021 21:11:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwihmkMTbS3L7QNFr70LKy+dxjkMSvzASkeGyiYTmo/WA16JaHRh+n5A2N+aHjDPPapMIg3 X-Received: by 2002:a5e:9917:: with SMTP id t23mr2470352ioj.158.1627531891142; Wed, 28 Jul 2021 21:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627531891; cv=none; d=google.com; s=arc-20160816; b=Mmeyed5b6o5bB6kHQ2Rg3w9KUMh3HLQeXnLKZcXeUgCeiH4R+pVmzptJcwW0mLNWnT EpW79lHVOwDyZrSOt+QU90Vq31vIBnTVOKPQEhurfLqHZIHb0Vu4LccjnF2PNk7h+aCL ebcHMskiDmJTJYv/64y/m1bpu8COPOTe7jDWkrm7NW1Qx5c27HIN4psQ5+8+qvl02+Fd BAzx2q5pFBLV/NYrCHXaFLCHGF05cjm/6+k5b7DKbxiUJJKMkH/giKR+ELepitAq+3lf 6rvnzLyfjII68zGbGcyglMKaTcceQxmpswInWDVjBvuRoImLZnEV++V/jqnHLpjHQ0T/ 8iVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:cc:to:subject:message-id :from:content-transfer-encoding:date:dkim-signature:mime-version; bh=FQIlXJgE77BqjE7g0NB7k8jykh0A2F51tEmTjZlIkXw=; b=I/XxjjVG78SrBNWpHqilR2eSJ4VEQlENJo8WVRuEGHFyt75AkZXtoLUOwNMg64gFf0 dGI4p4rR2S9b+6OSei4iW//fVAoVFkJNviqhtstnLKAlPToe2ojG/U9VhlI10sadVbJi v5AzoqFGetGLIjPj3GsJUzXvfB7CShwpTtGpb5qbUcOzLmKqEW+aO4pn+dCONm9ps77x K9Ou1Fz+gmw9NoUvKa0GZcMcoX+JOjMEZ3XLaoa26Ajyzx0pAwsUQbyRVJ1pygYSCHoH tHhkVy3nsgF7xZJIDe8ERYUMU0OCL/9pF4B1AwS9KZRMpW/nC7hQt2UmuqT2okbhsE0m LM3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="lLKc/cdb"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si2447752jat.28.2021.07.28.21.11.19; Wed, 28 Jul 2021 21:11:31 -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; dkim=pass header.i=@linux.dev header.s=key1 header.b="lLKc/cdb"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232580AbhG2EKk (ORCPT + 99 others); Thu, 29 Jul 2021 00:10:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbhG2EKj (ORCPT ); Thu, 29 Jul 2021 00:10:39 -0400 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98746C061757; Wed, 28 Jul 2021 21:10:36 -0700 (PDT) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1627531833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FQIlXJgE77BqjE7g0NB7k8jykh0A2F51tEmTjZlIkXw=; b=lLKc/cdby/fJ8bwpA2PkAjCmihLvx4wuTpuMnE/2pSTMHvCwEaYQncfLdJyUhiuP4Yy7hl lI6RoPaULrhrK6PjOzQ7Mdx15frwsj2WIUIH0Xo2/XZos3p2T7HJOCk79I82l3oPu7HjA6 WHTk3DbCNKeRyMF7pjgTH0Ul7OOsjDM= Date: Thu, 29 Jul 2021 04:10:33 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: yajun.deng@linux.dev Message-ID: Subject: Re: [PATCH] Revert "net: Get rid of consume_skb when tracing is off" To: "Herbert Xu" Cc: davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org In-Reply-To: <20210729040303.GA7009@gondor.apana.org.au> References: <20210729040303.GA7009@gondor.apana.org.au> <20210728125248.GC2598@gondor.apana.org.au> <20210728035605.24510-1-yajun.deng@linux.dev> <177cd530dcb2c9f4d09a2b23fdbbc71a@linux.dev> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: yajun.deng@linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org July 29, 2021 12:03 PM, "Herbert Xu" wrote:= =0A=0A> On Thu, Jul 29, 2021 at 04:01:28AM +0000, yajun.deng@linux.dev wr= ote:=0A> =0A>> if we don't define CONFIG_TRACEPOINTS, consume_skb() wolud= called kfree_skb(), there have=0A>> trace_kfree_skb() in kfree_skb(), th= e trace_kfree_skb() is also a trace function. So we=0A>> can trace consum= e_skb() even if we don't define CONFIG_TRACEPOINTS.=0A>> This patch "net:= Get rid of consume_skb when tracing is off" does not seem to be effectiv= e.=0A> =0A> The point of my patch was to get rid of consume_skb because i= ts=0A> only purpose is to provide extra information for tracing. If you'r= e=0A> not tracing then you don't need that extra information (and overhea= d).=0A> =0AOk, I didn't understand it well. =0A> Cheers,=0A> --=0A> Email= : Herbert Xu =0A> Home Page: http://gondor.a= pana.org.au/~herbert=0A> PGP Key: http://gondor.apana.org.au/~herbert/pub= key.txt