[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1216760035.15519.113.camel@calx>
Date: Tue, 22 Jul 2008 15:53:55 -0500
From: Matt Mackall <mpm@...enic.com>
To: Eduard - Gabriel Munteanu <eduard.munteanu@...ux360.ro>
Cc: penberg@...helsinki.fi, cl@...ux-foundation.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
rdunlap@...otime.net
Subject: Re: [RFC PATCH 4/4] kmemtrace: SLOB hooks.
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@...ux360.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists