]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ftrace: Add selftest to test function save-regs support
authorSteven Rostedt <srostedt@redhat.com>
Fri, 20 Jul 2012 17:45:59 +0000 (13:45 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 31 Jul 2012 14:29:54 +0000 (10:29 -0400)
commitad97772ad82f57c83968079d0880c71ab126ab04
treecb011219d1946a23f851f6d5d834003dbeb71b75
parentea701f11da44b44907af226fe5a5f57d2f26eeb2
ftrace: Add selftest to test function save-regs support

Add selftests to test the save-regs functionality of ftrace.

If the arch supports saving regs, then it will make sure that regs is
at least not NULL in the callback.

If the arch does not support saving regs, it makes sure that the
registering of the ftrace_ops that requests saving regs fails.
It then tests the registering of the ftrace_ops succeeds if the
'IF_SUPPORTED' flag is set. Then it makes sure that the regs passed to
the function is NULL.

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