The patch titled kprobes: increase kprobe_hash_table size has been added to the -mm tree. Its filename is kprobe-increase-kprobe_hash_table-size.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: kprobes: increase kprobe_hash_table size From: Masami Hiramatsu <mhiramat@xxxxxxxxxx> 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. When probing enters and exits of syscall-related functions, we need more than 500 probes. In that case, each hlist would have 8 elements in average. With this patch, the hlist would have 1 element in average. akpm: bloat alert: text data bss dec hex filename 7036 744 9380 17160 4308 kernel/kprobes.o 7048 744 73892 81684 13f14 kernel/kprobes.o That's 64 kbytes more memory. It is due to kretprobe_table_locks[], which uses ____cacheline_aligned. Signed-off-by: Masami Hiramatsu <mhiramat@xxxxxxxxxx> Acked-by: Ananth N Mavinakayanahalli <ananth@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/kprobes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/kprobes.c~kprobe-increase-kprobe_hash_table-size kernel/kprobes.c --- a/kernel/kprobes.c~kprobe-increase-kprobe_hash_table-size +++ a/kernel/kprobes.c @@ -49,7 +49,7 @@ #include <asm/errno.h> #include <asm/uaccess.h> -#define KPROBE_HASH_BITS 6 +#define KPROBE_HASH_BITS 9 #define KPROBE_TABLE_SIZE (1 << KPROBE_HASH_BITS) _ Patches currently in -mm which might be from mhiramat@xxxxxxxxxx are kprobes-disable-preempt-for-module_text_address-and-kernel_text_address.patch kprobe-increase-kprobe_hash_table-size.patch kprobes-bugfix-try_module_get-even-if-calling_mod-is-null.patch kprobes-indirectly-call-kprobe_target.patch kprobes-add-tests-for-register_kprobes.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html