ftrace: Fix function_graph tracer interaction with BPF trampoline

Depending on type of BPF programs served by BPF trampoline it can call original
function and may skip frame. That will confuse function_graph tracer and will
cause crashes with bad RIP. Teach graph tracer to skip function that are served
by BPF trampoline.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
4 files changed