ftrace: prevent ftrace_special from recursion
commit5aa1ba6a6c710e747838a22d798ac97a8b248745
authorSteven Rostedt <srostedt@redhat.com>
Tue, 11 Nov 2008 04:07:30 +0000 (10 23:07 -0500)
committerIngo Molnar <mingo@elte.hu>
Tue, 11 Nov 2008 08:40:29 +0000 (11 09:40 +0100)
tree29a0e0bfdad1a5674667dda1236099952dbf41cb
parente0cb4ebcd9e5b4ddd8216c20f54445c91b1fa4b9
ftrace: prevent ftrace_special from recursion

Impact: stop ftrace_special from recursion

The ftrace_special is used to help debug areas of the kernel.
Because of this, if it is put in certain locations, the fact that
it allows recursion can become a problem if the kernel developer
using does not realize that.

This patch changes ftrace_special to not allow recursion into itself
to make it more robust.

It also changes from preempt disable interrupts disable to prevent
any loss of trace entries.

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