Re: [PATCH] Revert "net: Get rid of consume_skb when tracing is off"

From: yajun . deng
Date: Thu Jul 29 2021 - 00:10:53 EST


July 29, 2021 12:03 PM, "Herbert Xu" <herbert@xxxxxxxxxxxxxxxxxxx> wrote:

> On Thu, Jul 29, 2021 at 04:01:28AM +0000, yajun.deng@xxxxxxxxx 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).
>
Ok, I didn't understand it well.
> Cheers,
> --
> Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
> Home Page: http://gondor.apana.org.au/~herbert
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt