]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9eaa30bcbbed79f439c5705e6ee0fbb040aa1125
treecdebce0c3eea35eb5cb490994f9dc43db21695c0
parent34ffa7736f5385c30d07bcc9d636ac1265b7d964
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