ftrace: Mark function tracer test functions noinline/noclone
authorAndi Kleen <ak@linux.intel.com>
Thu, 21 Dec 2017 23:37:32 +0000 (15:37 -0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 23 Jan 2018 20:57:29 +0000 (15:57 -0500)
commitdd3dad0d716dbb9fccadcc8709900d9cac6ca252
treecdebce0c3eea35eb5cb490994f9dc43db21695c0
parent0e4d819d0893dc043ea7b7cb6baf4be1e310bd96
ftrace: Mark function tracer test functions noinline/noclone

The ftrace function tracer self tests calls some functions to verify
the get traced. This relies on them not being inlined. Previously
this was ensured by putting them into another file, but with LTO
the compiler can inline across files, which makes the tests fail.

Mark these functions as noinline and noclone.

Link: http://lkml.kernel.org/r/20171221233732.31896-1-andi@firstfloor.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_selftest_dynamic.c