kprobes: Check probe address is reserved
authorMasami Hiramatsu <mhiramat@redhat.com>
Tue, 2 Feb 2010 21:49:18 +0000 (16:49 -0500)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Feb 2010 08:36:19 +0000 (09:36 +0100)
commit4554dbcb85a4ed2abaa2b6fa15649b796699ec89
tree5debd228bf382384d8a1430246b65a0f669f816f
parent2cfa19780d61740f65790c5bae363b759d7c96fa
kprobes: Check probe address is reserved

Check whether the address of new probe is already reserved by
ftrace or alternatives (on x86) when registering new probe.
If reserved, it returns an error and not register the probe.

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