]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Add selftest to test function trace recursion protection
authorSteven Rostedt <srostedt@redhat.com>
Fri, 20 Jul 2012 17:08:05 +0000 (13:08 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 31 Jul 2012 14:29:54 +0000 (10:29 -0400)
commitcc6c7192822d12dd74965cc3aadc9a6169864434
treebed777e80fb81b28903fe4a64cb90164e499a178
parent8b462b11d9595e9ed4c70ed1c96ef7ab6ea2e4a6
ftrace: Add selftest to test function trace recursion protection

Add selftests to test the function tracing recursion protection actually
does work. It also tests if a ftrace_ops states it will perform its own
protection. Although, even if the ftrace_ops states it will protect itself,
the ftrace infrastructure may still provide protection if the arch does
not support all features or another ftrace_ops is registered.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/trace/ftrace.c
kernel/trace/trace_selftest.c