kprobes: Disable booster when CONFIG_PREEMPT=y
authorMasami Hiramatsu <mhiramat@redhat.com>
Tue, 2 Feb 2010 21:49:04 +0000 (16:49 -0500)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Feb 2010 08:36:18 +0000 (09:36 +0100)
commit615d0ebbc782b67296e3226c293f520f93f93515
tree1831dffd72515695839fc3e99a70976393c4d6c8
parent57d818895f9d294ab9080e5a662675fdee943ff1
kprobes: Disable booster when CONFIG_PREEMPT=y

Disable kprobe booster when CONFIG_PREEMPT=y at this time,
because it can't ensure that all kernel threads preempted on
kprobe's boosted slot run out from the slot even using
freeze_processes().

The booster on preemptive kernel will be resumed if
synchronize_tasks() or something like that is introduced.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jim Keniston <jkenisto@us.ibm.com>
Cc: Mathieu Desnoyers <compudj@krystal.dyndns.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <20100202214904.4694.24330.stgit@dhcp-100-2-132.bos.redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/ia64/kernel/kprobes.c
arch/x86/kernel/kprobes.c
kernel/kprobes.c