Re: [RFC PATCH 4/4] kmemtrace: SLOB hooks.

From: Matt Mackall
Date: Tue Jul 22 2008 - 16:56:20 EST



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@xxxxxxxxxxx>
> ---
> 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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/