Skip to content
Commit d2ccbccb authored by Steven Rostedt (VMware)'s avatar Steven Rostedt (VMware)
Browse files

tracing: Define MCOUNT_INSN_SIZE when not defined without direct calls

In order to handle direct calls along side of function graph tracer, a check
is made to see if the address being traced by the function graph tracer is a
direct call or not. To get the address used by direct callers, the return
address is subtracted by MCOUNT_INSN_SIZE.

For some archs with certain configurations, MCOUNT_INSN_SIZE is undefined
here. But these should not be using direct calls anyway. Just define
MCOUNT_INSN_SIZE to zero in this case.

Link: https://lore.kernel.org/r/202001020219.zvE3vsty%lkp@intel.com



Reported-by: default avatarkbuild test robot <lkp@intel.com>
Fixes: ff205766 ("ftrace: Fix function_graph tracer interaction with BPF trampoline")
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent 02f4e01c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment