Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754180AbYKGXpx (ORCPT ); Fri, 7 Nov 2008 18:45:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752567AbYKGXpm (ORCPT ); Fri, 7 Nov 2008 18:45:42 -0500 Received: from mx2.redhat.com ([66.187.237.31]:41063 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752614AbYKGXpl (ORCPT ); Fri, 7 Nov 2008 18:45:41 -0500 Message-ID: <4914D2DE.9030603@redhat.com> Date: Fri, 07 Nov 2008 18:44:30 -0500 From: Masami Hiramatsu User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: Andrew Morton CC: Ananth N Mavinakayanahalli , Jim Keniston , David Miller , LKML , maneesh@in.ibm.com, Srikar Dronamraju Subject: [PATCH] kprobe: increase kprobe_hash_table size X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1067 Lines: 36 Increase the size of kprobe hash table to 512. It's useful when hundreds of kprobes were used in the kernel because current size is just 64. Signed-off-by: Masami Hiramatsu Acked-by: Ananth N Mavinakayanahalli --- kernel/kprobes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: 2.6.28-rc3/kernel/kprobes.c =================================================================== --- 2.6.28-rc3.orig/kernel/kprobes.c +++ 2.6.28-rc3/kernel/kprobes.c @@ -49,7 +49,7 @@ #include #include -#define KPROBE_HASH_BITS 6 +#define KPROBE_HASH_BITS 9 #define KPROBE_TABLE_SIZE (1 << KPROBE_HASH_BITS) -- Masami Hiramatsu Software Engineer Hitachi Computer Products (America) Inc. Software Solutions Division e-mail: mhiramat@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/