Messages in this thread | | | Subject | Re: [RFC PATCH 4/4] kmemtrace: SLOB hooks. | From | Matt Mackall <> | Date | Tue, 22 Jul 2008 15:53:55 -0500 |
| |
On Tue, 2008-07-22 at 21:36 +0300, Eduard - Gabriel Munteanu wrote: > This adds hooks for the SLOB allocator, to allow tracing with kmemtrace. > > Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> > --- > include/linux/slob_def.h | 9 +++++---- > mm/slob.c | 37 +++++++++++++++++++++++++++++++------ > 2 files changed, 36 insertions(+), 10 deletions(-) > > diff --git a/include/linux/slob_def.h b/include/linux/slob_def.h > index 59a3fa4..0ec00b3 100644 > --- a/include/linux/slob_def.h > +++ b/include/linux/slob_def.h > @@ -3,14 +3,15 @@ > > void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node); > > -static inline void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) > +static __always_inline void *kmem_cache_alloc(struct kmem_cache *cachep, > + gfp_t flags) > { > return kmem_cache_alloc_node(cachep, flags, -1); > }
Why is this needed? builtin_return?
-- Mathematics is the supreme nostalgia of our time.
| |