]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: handle archs that do not support irqs_disabled_flags
authorSteven Rostedt <rostedt@goodmis.org>
Fri, 24 Oct 2008 13:42:59 +0000 (09:42 -0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 30 Oct 2008 23:03:26 +0000 (00:03 +0100)
commita9de494f33d5ff24486e496ced178643e69b7012
treef0fb4a422667f67e7e3ac587bbbc6b03fa83756a
parentd52c8d0a82367a78d245d6eff3f4837ec0f67198
ftrace: handle archs that do not support irqs_disabled_flags

Impact: build fix on non-lockdep architectures

Some architectures do not support a way to read the irq flags that
is set from "local_irq_save(flags)" to determine if interrupts were
disabled or enabled. Ftrace uses this information to display to the user
if the trace occurred with interrupts enabled or disabled.

Besides the fact that those archs that do not support this will fail to
compile, unless they fix it, we do not want to have the trace simply
say interrupts were not disabled or they were enabled, without knowing
the real answer.

This patch adds a 'X' in the output to let the user know that the
architecture they are running on does not support a way for the tracer
to determine if interrupts were enabled or disabled. It also lets those
same archs compile with tracing enabled.

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