[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20091202061423.GC5719@nowhere>
Date: Wed, 2 Dec 2009 07:14:24 +0100
From: Frederic Weisbecker <fweisbec@...il.com>
To: Lai Jiangshan <laijs@...fujitsu.com>
Cc: Ingo Molnar <mingo@...e.hu>, Steven Rostedt <rostedt@...dmis.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] trace_output: change struct trace_seq's size to
PAGE_SIZE
On Sat, Nov 28, 2009 at 04:40:16PM +0800, Lai Jiangshan wrote:
>
> It's not very good that we allocate pages with page_order > 1.
> So we change struct trace_seq's size to PAGE_SIZE.
>
> Where we allocate a struct trace_seq:
>
> kernel/trace/trace.c:3720: s = kmalloc(sizeof(*s), GFP_KERNEL);
> kernel/trace/trace_events.c:539: s = kmalloc(sizeof(*s), GFP_KERNEL);
> kernel/trace/trace_events.c:580: s = kmalloc(sizeof(*s), GFP_KERNEL);
> kernel/trace/trace_events.c:604: s = kmalloc(sizeof(*s), GFP_KERNEL);
> kernel/trace/trace_events.c:660: s = kmalloc(sizeof(*s), GFP_KERNEL);
> kernel/trace/trace_events.c:715: s = kmalloc(sizeof(*s), GFP_KERNEL);
> kernel/trace/trace_ksym.c:230: s = kmalloc(sizeof(*s), GFP_KERNEL);
>
> Signed-off-by: Lai Jiangshan <laijs@...fujitsu.com>
Looks good to me.
Acked-by: Frederic Weisbecker <fweisbec@...il.com>
Steve, any objection?
--
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