kprobes: Add mcount to the kprobes blacklist
authorMasami Hiramatsu <mhiramat@redhat.com>
Fri, 5 Feb 2010 06:24:34 +0000 (01:24 -0500)
committerIngo Molnar <mingo@elte.hu>
Fri, 5 Feb 2010 07:13:57 +0000 (08:13 +0100)
Since mcount function can be called from everywhere,
it should be blacklisted. Moreover, the "mcount" symbol
is a special symbol name. So, it is better to put it in
the generic blacklist.

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: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <20100205062433.3745.36726.stgit@dhcp-100-2-132.bos.redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/kprobes.c

index c3340e836c37bbb8c59abe4c09e856ae05383669..ccec774c716d82d631d291e8c8693fb3da307b55 100644 (file)
@@ -94,6 +94,7 @@ static struct kprobe_blackpoint kprobe_blacklist[] = {
        {"native_get_debugreg",},
        {"irq_entries_start",},
        {"common_interrupt",},
+       {"mcount",},    /* mcount can be called from everywhere */
        {NULL}    /* Terminator */
 };