[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4914FE6C.5060504@redhat.com>
Date: Fri, 07 Nov 2008 21:50:20 -0500
From: Masami Hiramatsu <mhiramat@...hat.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: Ananth N Mavinakayanahalli <ananth@...ibm.com>,
Jim Keniston <jkenisto@...ibm.com>,
David Miller <davem@...emloft.net>,
LKML <linux-kernel@...r.kernel.org>, maneesh@...ibm.com,
Srikar Dronamraju <srikar@...ux.vnet.ibm.com>,
Srinivasa Ds <srinivasa@...ibm.com>
Subject: Re: [PATCH] kprobe: increase kprobe_hash_table size
Andrew Morton wrote:
> On Fri, 07 Nov 2008 21:33:49 -0500 Masami Hiramatsu <mhiramat@...hat.com> wrote:
>
>> Not really. Hmm, I have to investigate more on this problem.
>
> OK ;)
>
> Meanwhile, how does this look?
Great! That is enough acceptable.
Thank you very much!
> From: Andrew Morton <akpm@...ux-foundation.org>
>
> We only need the cacheline padding on SMP kernels. Saves 6k:
>
> text data bss dec hex filename
> 5713 388 2632 8733 221d kernel/kprobes.o
> 5713 388 8840 14941 3a5d kernel/kprobes.o
>
> Cc: Masami Hiramatsu <mhiramat@...hat.com>
> Cc: Ananth N Mavinakayanahalli <ananth@...ibm.com>
> Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
Acked-by: Masami Hiramatsu <mhiramat@...hat.com>
> ---
>
> kernel/kprobes.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN kernel/kprobes.c~a kernel/kprobes.c
> --- a/kernel/kprobes.c~a
> +++ a/kernel/kprobes.c
> @@ -72,7 +72,7 @@ static bool kprobe_enabled;
> DEFINE_MUTEX(kprobe_mutex); /* Protects kprobe_table */
> static DEFINE_PER_CPU(struct kprobe *, kprobe_instance) = NULL;
> static struct {
> - spinlock_t lock ____cacheline_aligned;
> + spinlock_t lock ____cacheline_aligned_in_smp;
> } kretprobe_table_locks[KPROBE_TABLE_SIZE];
>
> static spinlock_t *kretprobe_table_lock_ptr(unsigned long hash)
> _
>
--
Masami Hiramatsu
Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division
e-mail: mhiramat@...hat.com
--
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