tracing: Fix bad parameter passed in branch selftest
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 29 May 2013 19:56:49 +0000 (15:56 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 29 May 2013 20:00:03 +0000 (16:00 -0400)
commit0184d50f9fd17658c232d6ee6d465a87f989d706
treefdf81c6309458bf0a2a1af17115c42a2270889a9
parent1bb539ca36e21c2f4fce0865e11df384bc7b7656
tracing: Fix bad parameter passed in branch selftest

The branch selftest calls trace_test_buffer(), but with the new code
it expects the first parameter to be a pointer to a struct trace_buffer.
All self tests were changed but the branch selftest was missed.

This caused either a crash or failed test when the branch selftest was
enabled.

Link: http://lkml.kernel.org/r/20130529141333.GA24064@localhost
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_selftest.c