On Wednesday 28 February 2007 10:02, Evgeniy Polyakov wrote: > Attached patch detects in run-time things like: > skb = alloc_skb(); > kfree(skb); > > where provided to kfree pointer does not belong to kmalloc caches. > It is turned on when slab debug config option is enabled. > > When problem is detected, following warning is printed with hint to > what cache/function should be used instead:
It would be less expensive to add a flag #define SLAB_KFREE_NOWARNING 0x00200000UL And OR this flags into cs->flags of all standard caches created by kmem_cache_init() from malloc_sizes[]/cache_names[] kfree() would then just test this flag. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html