ftrace: cleanup ftrace_graph_caller enable and disable
authorChengming Zhou <zhouchengming@bytedance.com>
Wed, 20 Apr 2022 16:00:05 +0000 (00:00 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 29 Apr 2022 18:21:12 +0000 (19:21 +0100)
commite999995c84c3abb6dcae83f8c35942a8d4ee0451
treecd20ed9cf9041dec9965695f45520e786eea9f9c
parentb2d229d4ddb17db541098b83524d901257e93845
ftrace: cleanup ftrace_graph_caller enable and disable

The ftrace_[enable,disable]_ftrace_graph_caller() are used to do
special hooks for graph tracer, which are not needed on some ARCHs
that use graph_ops:func function to install return_hooker.

So introduce the weak version in ftrace core code to cleanup
in x86.

Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20220420160006.17880-1-zhouchengming@bytedance.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/x86/kernel/ftrace.c
kernel/trace/fgraph.c