提交 dd3dad0d 编写于 作者: A Andi Kleen 提交者: Steven Rostedt (VMware)

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.orgSigned-off-by: NAndi Kleen <ak@linux.intel.com>
Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
上级 0e4d819d
// SPDX-License-Identifier: GPL-2.0
#include <linux/compiler.h>
#include "trace.h"
int DYN_FTRACE_TEST_NAME(void)
noinline __noclone int DYN_FTRACE_TEST_NAME(void)
{
/* used to call mcount */
return 0;
}
int DYN_FTRACE_TEST_NAME2(void)
noinline __noclone int DYN_FTRACE_TEST_NAME2(void)
{
/* used to call mcount */
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册