Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5786454pxv; Wed, 28 Jul 2021 21:04:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrK617l7jS504p+3kLYbmsC2ttdRZUwKRHkJCgdjyu/eQOBt1nP8YsbYCt3E2f/TaMzSdT X-Received: by 2002:aa7:d982:: with SMTP id u2mr3298916eds.202.1627531451351; Wed, 28 Jul 2021 21:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627531451; cv=none; d=google.com; s=arc-20160816; b=V9gAw6zWgFsIyyk52iXRSNAgijiGpaVSwNuNN7eCcU/iv3BaclyEwreArqLK72gZGn alWfIMhuI7Kka/toi4zCTH7VgL1yaBfLmKTntQr8n1Y6bKUp4z6NdDY6wRsKiV5R//9E HNwssCAWDOAoiZkFU0cFv1KZFTN6bSLeYhl06iFRAa2Uleq+NwKk+R7gq9X6DKEh4pSB c+UfXRmONP6pu+6zq4Vq1AUyUYlT1o1McUCP8BUq6SW6Tg4aD+UqNI/NP/LjJlh6hTYY ELZFD5dm0gCvN9k37qIqXHKpU6YMgBAGTUdEJDYofwjxNEihWVNg+kAQU19eCTxl8Wpt xBPg== 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=l4zsXJLG8PBLt8CZxWxMWv6w5AiWAx+98HcQ2KmFZ54=; b=t1+WK59eRIe6v5MsldsOBofTZ6KfUQzzEKoyiDteoJtrxT/O0XzU/ASdY/RIOAVOwq TVzihVotepETNgLh/AFCckm7xNA9NgqR75TpTk1ntBBNjGG4ggJGmQIa9Jf2wXSVRb/B ++iuczfEnCGAHGsw8lfOm/SLjqOM9ApIAwSam00FLhilUBd4YKME4s4RsyM2JnpAw5Q2 5AQwvlCMji8a5LLsk8W5aqBvKSOSop55jR7yVHyrhWfTmGFdRG9jQNohpTwCKhpaGYx2 fwR4g+b2FrmKIf7BeOhrSR+SGbTUXmKWA2ZYxIwDTxr9eTEum62IDxoSWbCF81WEHyf5 qzyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=pPmcr6tI; 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 f12si1603695edw.528.2021.07.28.21.03.37; Wed, 28 Jul 2021 21:04:11 -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=pPmcr6tI; 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 S229812AbhG2EBf (ORCPT + 99 others); Thu, 29 Jul 2021 00:01:35 -0400 Received: from out1.migadu.com ([91.121.223.63]:58655 "EHLO out1.migadu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbhG2EBe (ORCPT ); Thu, 29 Jul 2021 00:01:34 -0400 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1627531290; 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=l4zsXJLG8PBLt8CZxWxMWv6w5AiWAx+98HcQ2KmFZ54=; b=pPmcr6tI+85vQQMQIJXYyOszbPuThZ14+L4G/zTLIZUXpqbDkelVmnqT68KZ7AWk56l7WI MiXpxUmEyT1warUSplg3J4oqQLQE65QUC8NtE9K6CCkWWUd5rLgVnFMva2oS5AX0LywSBK Eg1vCWzVPV/mOuQS/oVRjlFoUYfsGZg= Date: Thu, 29 Jul 2021 04:01:28 +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: <177cd530dcb2c9f4d09a2b23fdbbc71a@linux.dev> 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: <20210728125248.GC2598@gondor.apana.org.au> References: <20210728125248.GC2598@gondor.apana.org.au> <20210728035605.24510-1-yajun.deng@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 28, 2021 8:52 PM, "Herbert Xu" wrote:= =0A=0A> On Wed, Jul 28, 2021 at 11:56:05AM +0800, Yajun Deng wrote:=0A> = =0A>> This reverts commit be769db2f95861cc8c7c8fedcc71a8c39b803b10.=0A>> = There is trace_kfree_skb() in kfree_skb(), the trace_kfree_skb() is=0A>> = also a trace function.=0A>> =0A>> Fixes: be769db2f958 (net: Get rid of co= nsume_skb when tracing is off)=0A>> Signed-off-by: Yajun Deng =0A> =0A> Please explain in more detail why your patch is need= ed. As it=0A> stands I do not understand the reasoning.=0A> =0Aif we don'= t define CONFIG_TRACEPOINTS, consume_skb() wolud called kfree_skb(), ther= e have=0Atrace_kfree_skb() in kfree_skb(), the trace_kfree_skb() is also = a trace function. So we=0Acan trace consume_skb() even if we don't define= CONFIG_TRACEPOINTS.=0AThis patch "net: Get rid of consume_skb when traci= ng is off" does not seem to be effective.=0A=0A> Thanks,=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