[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210729040303.GA7009@gondor.apana.org.au>
Date: Thu, 29 Jul 2021 12:03:03 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: yajun.deng@...ux.dev
Cc: davem@...emloft.net, kuba@...nel.org, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH] Revert "net: Get rid of consume_skb when tracing is off"
On Thu, Jul 29, 2021 at 04:01:28AM +0000, yajun.deng@...ux.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 <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists