[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090225081624.GA809@gondor.apana.org.au>
Date: Wed, 25 Feb 2009 16:16:24 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: David Miller <davem@...emloft.net>
Cc: nhorman@...driver.com, shemminger@...tta.com,
netdev@...r.kernel.org, kuznet@....inr.ac.ru, pekkas@...core.fi,
jmorris@...ei.org, yoshfuji@...ux-ipv6.org
Subject: Re: [RFC] addition of a dropped packet notification service
On Tue, Feb 24, 2009 at 11:48:40PM -0800, David Miller wrote:
>
> Here's an idea that doesn't use tracepoints (I really don't like
> them, to be honest):
>
> 1) Isolate the normal packet freeing contexts, have them call
> kfree_skb_clean() or something like that.
>
> 2) What remains are the abnormal drop cases. They still call
> plain kfree_skb() which records __builtin_return_address(0)
> and builds a hash table of counts call sites.
>
> Then you just dump the table via some user visible interface.
This sounds like a great idea to me.
Thanks,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists