]> 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)
commitef7fb19787ff4c862e748df0a6d451c08201d426
treecdebce0c3eea35eb5cb490994f9dc43db21695c0
parent0c0744b43ef4b7394dcd8baecaaf1b387fd35e74
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