ftrace: startup tester on dynamic tracing.
commit77a2b37d227483fe52aead242652aee406c25bf0
authorSteven Rostedt <srostedt@redhat.com>
Mon, 12 May 2008 19:20:45 +0000 (12 21:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 18:41:06 +0000 (23 20:41 +0200)
treececb6a3a02a567530e2ce3502de18f371c9db7c1
parent7bd2f24c2f769e3f8f1d4fc8b9fddf689825f6a7
ftrace: startup tester on dynamic tracing.

This patch adds a startup self test on dynamic code modification
and filters. The test filters on a specific function, makes sure that
no other function is traced, exectutes the function, then makes sure that
the function is traced.

This patch also fixes a slight bug with the ftrace selftest, where
tracer_enabled was not being set.

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