From: Masami Hiramatsu <mhiramat@redhat.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>,
Jim Keniston <jkenisto@us.ibm.com>,
David Miller <davem@davemloft.net>,
LKML <linux-kernel@vger.kernel.org>,
maneesh@in.ibm.com, Srikar Dronamraju <srikar@linux.vnet.ibm.com>,
Srinivasa Ds <srinivasa@in.ibm.com>
Subject: Re: [PATCH] kprobe: increase kprobe_hash_table size
Date: Fri, 07 Nov 2008 21:50:20 -0500 [thread overview]
Message-ID: <4914FE6C.5060504@redhat.com> (raw)
In-Reply-To: <20081107184629.97eb5ec3.akpm@linux-foundation.org>
Andrew Morton wrote:
> On Fri, 07 Nov 2008 21:33:49 -0500 Masami Hiramatsu <mhiramat@redhat.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@linux-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@redhat.com>
> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Masami Hiramatsu <mhiramat@redhat.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@redhat.com
next prev parent reply other threads:[~2008-11-08 2:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-07 23:44 [PATCH] kprobe: increase kprobe_hash_table size Masami Hiramatsu
2008-11-07 23:56 ` Andrew Morton
2008-11-08 0:18 ` Masami Hiramatsu
2008-11-08 1:03 ` Andrew Morton
2008-11-08 2:33 ` Masami Hiramatsu
2008-11-08 2:46 ` Andrew Morton
2008-11-08 2:50 ` Masami Hiramatsu [this message]
2008-11-08 2:53 ` Masami Hiramatsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4914FE6C.5060504@redhat.com \
--to=mhiramat@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=ananth@in.ibm.com \
--cc=davem@davemloft.net \
--cc=jkenisto@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maneesh@in.ibm.com \
--cc=srikar@linux.vnet.ibm.com \
--cc=srinivasa@in.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.