Messages in this thread | | | Date | Fri, 11 Jul 2008 11:33:53 +0300 | From | "Pekka Enberg" <> | Subject | Re: [RFC PATCH 2/5] Add new GFP flag __GFP_NOTRACE. |
| |
Hi Eduard-Gabriel,
On Thu, Jul 10, 2008 at 9:06 PM, Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> wrote: > __GFP_NOTRACE turns off allocator tracing for that particular allocation. > > This is used by kmemtrace to correctly classify different kinds of > allocations, without recording one event multiple times. Example: SLAB's > kmalloc() calls kmem_cache_alloc(), but we want to record this only as a > kmalloc. > > Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
I don't like this approach. I think you can just place the hooks in the proper place in SLAB to avoid this?
| |