ftrace: only have ftrace_kill atomic
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 23 Oct 2008 13:33:02 +0000 (09:33 -0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 23 Oct 2008 14:00:19 +0000 (16:00 +0200)
commit81adbdc029ecc416d56563e7f159100181dd711d
treeff7ed7b0fb284c22eb30e690a85e2e9e083c4162
parentab9a0918cbf0fa8883301838df8dbc8fc085ff50
ftrace: only have ftrace_kill atomic

When an anomaly is detected, we need a way to completely disable
ftrace. Right now we have two functions: ftrace_kill and ftrace_kill_atomic.
The ftrace_kill tries to do it in a "nice" way by converting everything
back to a nop.

The "nice" way is dangerous itself, so this patch removes it and only
has the "atomic" version, which is all that is needed.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/ftrace.h
kernel/trace/ftrace.c
kernel/trace/trace.c