Re: [PATCH v2] tracing: add ACCOUNT flag for allocations from marked slab caches

From: Matthew Wilcox
Date: Tue May 17 2022 - 09:38:05 EST


On Tue, May 17, 2022 at 12:44:14PM +0300, Vasily Averin wrote:
> 2) rework kmem_cache_alloc* tracepoints to use cachep instead
> of current cachep->*size parameters. Now kmalloc[_node] and
> kmem_cache_alloc[_node] tracepoints do not use common template

You can keep the common template. Just pass in s->object_size as well
as s.